- Fixed now can use useStora in non-component javscript file. Ex: const stora = useStora({ store: true })
- Fixed set(obj) properly update states after triggered.
- Added set(obj) now will spread previous component states automatically.
- Removed set([obj, obj]) this function is deprecated, use set(obj) instead.
- Added use github actions to auto build/publish to npm and github registry.
- Added support for next.js server-side rendering integration using custom withStora HOC.
- Changed re-write README to include next.js setup, added API sections and fix typos.
- Added tightly integrated with RoutRa, a very simple router for React following StoRa footprint.
- Added with integration with RoutRa, you can use actions.quera.visit to change route right inside StoRa
- Added include a demo project to better understand how to use StoRa. just clone > yarn install > yarn dev
- Fixed in mutation config, it will detect whether to add state or action properly now
- Removed: error log when cannot find stora.config.js
- Fixed: in mutate config, you can mix up function and object inside it. useStora will check its type and add it to either states or actions accordingly.
- can add more states using config mutate object
- can add more actions using config mutate object
- can filter screen states using config query object
- can get one or multiple states using destructuring syntax
- can get one or multiple actions using destructuring syntax
- can get one screen states using key string
- can get multiple screen states using array of key string
- can set one screen states using key value pair
- can set multiple screen states using object
- can set multiple screen states using arrays of object