Skip to content

Releases: atlassian/react-sweet-state

v2.4.1

26 Oct 07:32
Compare
Choose a tag to compare

Bug fixes

  • Set defaults.batchUpdates to false as it's a potential breaking change. Making it opt-in for now

v2.4.0

24 Oct 10:08
Compare
Choose a tag to compare

New features

Updates are now batched by default even across actions and stores. It means that calling setState will no longer trigger a synchronous re-render but it will schedule an update that will triggered on next tick.
This behaviour can be disable by setting defaults.batchedUpdates = false

v2.3.3

16 Oct 06:18
Compare
Choose a tag to compare

Optimisations

  • Discard store update if next state is shallow equal to current state

v2.3.2

09 Oct 04:17
Compare
Choose a tag to compare

Bug fixes

  • Fix Flow type definition for default store type

v2.3.1

28 Jun 00:51
Compare
Choose a tag to compare

Bug fixes

  • Fix selectors triggering unnecessary re-renders

v2.3.0

25 May 10:54
Compare
Choose a tag to compare

New features

  • Allow defaults.devtools to be a function to customise Redux Devtools store options

v2.2.0

16 May 06:36
Compare
Choose a tag to compare

New features

  • added batch API to easily batch multiple setState calls and actions. It is basically a re-export of React.unstable_batchedUpdates API.

Bug fixes

  • sweet-state now fully works under React StrictMode, even while in dev mode. Now sweet-state is more compliant with the future React Concurrent

v2.1.1

14 Apr 02:00
Compare
Choose a tag to compare

New features

  • onCleanup API for containers, triggered after a container gets removed from the tree

Bug fixes

  • Fix stores not being cleared if no listeners and container removed from the tree
  • Fix createStore store types, forcing initialState to be an object as other types where never really supported

v2.0.2

10 Mar 07:38
Compare
Choose a tag to compare
  • Fix security concern by not using eval in devtools

v2.0.1

10 Mar 07:37
Compare
Choose a tag to compare
  • Fix issue when React batching was skipping components updates