developit / developit/unistore
Side effect in `store.setState`
Open
question
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm the creator of Reless-js (https://github.com/Alber70g/reless-js) which is basically the same thing as unistore.
I've used an `update` to update things in an async matter, but it's nicer to pass actions in the action and call one of them to update the state. Otherwise you'd have some sort of side-effect which is hard to locate and log with Dev Tools (e.g. redux-dev-tools).
Have a look at how I solved it in reless-js and use it to your advantage
Just my 2 cents ;)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.