developit / developit/unistore

Side effect in `store.setState`

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.