Skip to content

Conversation

@5cript
Copy link
Member

@5cript 5cript commented Jan 11, 2026

generate on observed can now take a function that takes the observed values as arguments.

div {
  class_ = observe(val1, val2).generate([](std::string const& str1, std::string const& str2) {
    return fmt::format("{} {}", str1, str2);
  });
}

Other smaller fixes and changes:

  • Added option to forward JSON_DIAGNOSTICS to nui targets for nlohmann_json. (NUI_JSON_DIAGNOSTICS)
  • Improved performance for some attributes by using fmt to generate the string.
  • Fixed ResizeObserver destructor by calling disconnect.
  • Fixed DragEvent by removing hasOwnProperty check, because it never has the property as 'dataTransfer', its from a prototype.

@5cript 5cript changed the title Fix/remove own property check Smal fixes with new WebApi classes Jan 11, 2026
@5cript 5cript changed the title Smal fixes with new WebApi classes Small fixes with new WebApi classes Jan 11, 2026
@5cript 5cript changed the title Small fixes with new WebApi classes Generate function can now take values as parameters Jan 11, 2026
@5cript 5cript force-pushed the fix/remove_own_property_check branch from 6306488 to 183bd6c Compare January 11, 2026 06:47
@5cript 5cript merged commit ed64260 into main Jan 13, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants