You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to API compatibility, useSyncExternalStore internal implementation mainly solves the tearing problem, which is a defect of Concurrent mode.
React uses this API to degrade the internal scheduling to micro tasks, which loses the concurrency ability, but ensures the consistency of rendering.
Fre has the same defect. It may be useful to implement this API, but I don't think many libraries will use it in the short term.
Came here because I wanted to use Xstate with a react alternative library. So that could be a use case. The @xstate/react package uses useSyncExternalStore
I just wanted to put this as a place holder item for now
Some libraries that are using
useSyncExternalStore
already:react-query
: https://github.com/tannerlinsley/react-query/pull/3064/filesThe text was updated successfully, but these errors were encountered: