Closed phaistonian closed 2 years ago
Good question. Suspense for Data Fetching will still not be finalized in 18.0.0, so not sure if we can do anything officially. Besides, zustand library doesn't deal anything with async stuff at the moment. It will be something totally new concept. What would people expect with Suspense?
Merry Christmas!
@dai-shi perhaps useSyncExternalStore is the proper way to go.
Our goal is for all subscription-based libraries to migrate their implementations to useSyncExternalStore.
Ah, you just mean to support React 18 in general.
(https://github.com/reactwg/react-18/discussions/86 is open Aug 28 and #550 is created Aug 31 right after that even before uSES is actually implemented!) Stay tuned!
Hello,
Since 18 is already here, I am wondering if there's any suggested - or "planned" - way for Zustand to work, the proper way, with
Suspense
.Merry Christmas to you all! 🎉