Skip to content

kardavx/crate

 
 

Repository files navigation

Crate

A simple to use, scalable state container built for the roblox-ts ecosystem

Downloads Contributors Stargazers Issues License

Notice β€’ Installation β€’ Credits β€’ Changelog β€’ Documentation

πŸ“› Notice

Caution

This package is still in early beta, expect breaking changes

πŸ’» Installation

npm i @rbxts/crate
yarn add @rbxts/crate
pnpm add @rbxts/crate

πŸ’‘ Credits

This software uses the following:

βš’οΈ Changelog

v1.0.0

Added or Changed

  • Rename .get() to .getState()
  • Reflex style state selectors for .getState() and .onUpdate

v0.0.5

Added or Changed

  • Second parameter to copy object passed to .update(). #1

Fixed

  • Issue with equality check on update. #3

v0.0.4

Fixed

  • .get() type issue with key.

v0.0.3

Added or Changed

  • Internal state is fully immutable.
  • onUpdate() callback is no longer invoked if the state doesn't truly change.

Fixed

  • Type errors

Removed

  • reset() method.

About

A tiny little state system for roblox-ts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%