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 increateAtom
, 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 } );
-