github statelyai/xstate @xstate/store@2.5.0

latest releases: @xstate/vue@4.0.0, @xstate/store@2.6.1, @xstate/svelte@4.0.0...
one month ago

Minor Changes

  • #5085 51437a4d036029ab4ff74cb52721178b3e525c48 Thanks @davidkpiano! - The shallowEqual comparator has been added for selector comparison:

    import { shallowEqual } from '@xstate/store';
    import { useSelector } from '@xstate/store/react';
    
    import { store } from './store';
    
    function MyComponent() {
      const state = useSelector(
        store,
        (s) => {
          return s.items.filter(/* ... */);
        },
        shallowEqual
      );
    
      // ...
    }

Don't miss a new xstate release

NewReleases is sending notifications on new releases.