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

Support useTransition/startTransition/Suspense? #350

Open
fr-an-k opened this issue Jul 10, 2022 · 1 comment
Open

Support useTransition/startTransition/Suspense? #350

fr-an-k opened this issue Jul 10, 2022 · 1 comment

Comments

@fr-an-k
Copy link

fr-an-k commented Jul 10, 2022

Can React 18 concurrency features be added to Fre? Or realized in a different way?
In other words, 1) does Fre support expensive state computation while remaining snappy? 2) Is there a built-in mechanism to get the pending state?

@yisar
Copy link
Collaborator

yisar commented Jul 12, 2022

  1. does Fre support expensive state computation while remaining snappy?

Yes, of course.

  1. Is there a built-in mechanism to get the pending state?

It is more difficult to implement suspend in fre than react, because the diff algorithm of fre is more complex. I haven't had much time recently, and I may come back in the future。

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

2 participants