frejs / fre

:ghost: Tiny Concurrent UI library with Fiber.

Home Page:https://fre.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support useTransition/startTransition/Suspense?

fr-an-k opened this issue · comments

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?

  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。