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

Suspense Support in React? #838

Open
jeanfortheweb opened this issue Jan 14, 2023 · 2 comments
Open

Suspense Support in React? #838

jeanfortheweb opened this issue Jan 14, 2023 · 2 comments
Labels
question Further information is requested

Comments

@jeanfortheweb
Copy link

Hello everybody!
I'm very pleased with the overall api design of effector, however, i would prefer to let my effects to run into suspense mode, but i fail to find any information if effector supports suspense or not.

Thanks for answers in advance!

@jeanfortheweb jeanfortheweb added the question Further information is requested label Jan 14, 2023
@AlexandrHoroshih
Copy link
Member

AlexandrHoroshih commented Jan 15, 2023

Hello!

Unfortunately, Suspense support for data-fetching in React is still experimental, and its current state and behavior will change in the future 😢.
You can track React's team progress on these features here:
facebook/react#13206

There are some libraries, like react-query, that decided to provide support anyway, but as a result the documentation has the ugly warning "Experimental API! Do not use in production!".

So we decided it is better and easier to provide support for a stable version of Suspense for data fetching as soon as it is released

@AlexandrHoroshih
Copy link
Member

You can check out the Farfetched - it is a data-fetching library, which is based on effector and currently supports Suspense API of Solid.js and most likely will be first to support React's Suspense data-fetching, once it is actually released.

Also it supports a lot of other data-fetching-specific features (like retries and caches) out of the box

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

No branches or pull requests

2 participants