A simple to use, scalable state container built for the roblox-ts ecosystem
Caution
This package is still in early beta, expect breaking changes
npm i @rbxts/crate
yarn add @rbxts/crate
pnpm add @rbxts/crateThis software uses the following:
- Rename
.get()to.getState() - Reflex style state selectors for
.getState()and.onUpdate
- Second parameter to copy object passed to
.update(). #1
- Issue with equality check on update. #3
.get()type issue with key.
- Internal state is fully immutable.
onUpdate()callback is no longer invoked if the state doesn't truly change.
- Type errors
reset()method.
