v6.1.0
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 ofunstable_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.