Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async Updates #10

Open
objectliteral opened this issue May 17, 2019 · 0 comments
Open

Async Updates #10

objectliteral opened this issue May 17, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@objectliteral
Copy link
Contributor

Currently, all updates to values in the store happen synchronously.

While this leads to mostly predictable behavior overall, I feel like updates should happen asynchronously. This is mostly for performance reasons.

I think, React developers don't expect updates to happen synchronously and usually won't depend on that. Asynchronous data flows and state updates are so common in the React ecosystem that they probably won't irritate developers.

Implementation

One question regarding the implementation is, whether fleux should start returning promises or use the new async/await stuff or neither.

Should there be a way to somehow force synchronicity? I lean towards no.

As a consequence of this change, some tests will need to be updated that check against state updates.

@objectliteral objectliteral added the enhancement New feature or request label May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant