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

Suggestion: formalize state of data acquisition #5

Open
jmbldwn opened this issue Jul 2, 2020 · 0 comments
Open

Suggestion: formalize state of data acquisition #5

jmbldwn opened this issue Jul 2, 2020 · 0 comments

Comments

@jmbldwn
Copy link

jmbldwn commented Jul 2, 2020

If more than one component needs data at the same time (peers on a page, for example), the test on whether the data has been loaded (it's not null) fails and multiple actions are performed in parallel, unnecessarily.

If each action could keep state (empty, loading, error?), we could skip actions that are repeats of actions in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant