Skip to content

v6.1.0

Compare
Choose a tag to compare
@solkimicreb solkimicreb released this 31 Jan 13:54
· 128 commits to master since this release

Changes

  • Automatic sync batching was added for native DOM event handlers to improve performance.

  • Rewrote the batching implementation to use React's unstable_batchedUpdates.

    • Components will no longer render twice if a related store and their props are both changed in a single sync batch.

    • Components are always rendered in a parent-child order in a single batch.

    • The batch function is just an alias of unstable_batchedUpdates.

  • Fixed a bug with ES6 Maps and Sets, where object values with nested data were not reactive sometimes.

  • Tests are wrapped with <StrictMode> to guarantee the compatibility with tomorrow's React.

  • Added a React Native example and test coverage for React Native.

  • Added typings for the batch function. (Thanks to moritzuehling)

  • Improved docs.