Skip to content

Commit 0c10ed5

Browse files
committed
SY-3833-1: Add Pluto Flux Selector Primitive
Adds Flux.createSelector, a generic React hook factory for subscribing to scoped flux store state with referential stability. Supports custom equality, args memoization via useMemoDeepEqual, and version-bumped caching to prevent infinite re-renders when select returns derived objects.
1 parent 9ec21e9 commit 0c10ed5

3 files changed

Lines changed: 547 additions & 0 deletions

File tree

pluto/src/flux/external.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export * from "@/flux/list";
1515
export * from "@/flux/Provider";
1616
export * from "@/flux/result";
1717
export * from "@/flux/retrieve";
18+
export * from "@/flux/select";
1819
export * from "@/flux/update";

0 commit comments

Comments
 (0)