UNPKG

react-granular-store

Version:

Granular react store for subscribing to specific parts of a state tree

110 lines (55 loc) 1.49 kB
# react-granular-store ## 0.2.0 ### Minor Changes - 4ecf791: Fixed setting a function as a piece of state ## 0.1.2 ### Patch Changes - 5724754: Changing the store should update the state ## 0.1.1 ### Patch Changes - f7c776d: Include sourcemaps in build ## 0.1.0 ### Minor Changes - 01736f6: Update react compatibility, update tests to use react 19, make react a peer dependency ## 0.0.16 ### Patch Changes - fc37823: Comments and more logical order of functions in main class ## 0.0.15 ### Patch Changes - dfbc80f: Improve readme ## 0.0.14 ### Patch Changes - c233879: Refactor batched updates ## 0.0.13 ### Patch Changes - e5e9a10: Better typing for on/off and setState batching improvements ## 0.0.12 ### Patch Changes - 9e81905: Improve inference of store in hooks ## 0.0.11 ### Patch Changes - bc5a980: Restore readme ## 0.0.10 ### Patch Changes - 409dfde: Update readme ## 0.0.9 ### Patch Changes - 0216228: Fix return types for hooks ## 0.0.8 ### Patch Changes - 32d662e: RecordStore type variants for hooks ## 0.0.7 ### Patch Changes - 4690af7: Make RecordStore get return type properly undefined ## 0.0.6 ### Patch Changes - 5cb4e3f: Small optimisations ## 0.0.5 ### Patch Changes - 2013c97: Add warning for use of noUncheckedIndexedAccess with RecordStore class ## 0.0.4 ### Patch Changes - aa51f8d: Added a setState callback function and the new RecordStore<T> subclass ## 0.0.3 ### Patch Changes - 4e07e95: Basic readme