Skip to content
Discussion options

You must be logged in to vote

Hi @wojciech-kulik, we should really write up some documentation about this, but we feel that the kinds of synchronous effects you are describing are totally fine. In particular, effects that just need to access some value from the "outside world", and such that that access is fast.

So, things like reading from user defaults directly is totally fine to do synchronously directly in the reducer. On the other hand, a database query might still be best to handle in an async fashion since it may time some time to execute and that could hold up the main thread.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wojciech-kulik
Comment options

Answer selected by wojciech-kulik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants