github statelyai/xstate @xstate/store@3.5.0

latest releases: @xstate/store@3.6.0, xstate@5.19.3, @xstate/vue@4.0.3...
24 days ago

Minor Changes

  • #5250 a1bffb55b2029bde82e542d5936c51d961909a37 Thanks @davidkpiano! - - Improved atom architecture with better dependency management (the diamond problem is solved!)

    • Optimized recomputation logic to prevent unnecessary updates

    • Added support for custom equality functions through compare option in createAtom, allowing fine-grained control over when atoms update:

      const coordinateAtom = createAtom(
        { x: 0, y: 0 },
        {
          // only update when x and y change
          compare: (prev, next) => prev.x === next.x && prev.y === next.y
        }
      );

Don't miss a new xstate release

NewReleases is sending notifications on new releases.