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

RecoilLoadable contains Promise value will never change state from 'loading' to other states. #2290

Open
iahu opened this issue Oct 16, 2023 · 0 comments

Comments

@iahu
Copy link

iahu commented Oct 16, 2023

I want to create a Loadable State from a list of remote data, which like that:

const loadableState = RecoilLoadable.all([1,2,3].map(n => getDataById(n)));

and use it to render a DOM list.

I hope the loadableState will change state to hasError or hasValue when all requests have resolved. but unexpected that the state never changed.

here is a running example of my issue.

I'm not sure of that is by design or a bug, but just report it.

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