Explore tweets tagged as #useSyncExternalStore
Worked on <@DrizzleORM Play> today. I use @remix_run for this project and ended up with something that feels really smooth: non-blocking UI while the app is booting the playground. What you see here is a mix of clientLoader and useSyncExternalStore. clientLoader boots a
3
10
86
New local-first experiment with @loro_dev . Achieved live sync in react.👉 `useSyncExternalStore` subscribe to changes.👉 Extract latest data. Loro supports export/import in Uint8Array, so it should be possible to sync with http 🔜
0
1
14
Subscribing to an external store using useSyncExternalStore() hook 🪝 in ReactJS. Checkout the full video on my YouTube channel: CodEd by Om. #useSyncExternalStore #reactjs #reactplaylist #reactjsomlondhe #omlondhe
0
0
3
❌ Don't use React Query to read what's synchronous. It's not because you can use React Query that you should. This includes localStorage, but many other cases as well. Can read synchronously & subscribe to changes?.➡️ useSyncExternalStore(). No loading/error state to handle
6
35
469
Good session on @uidotdev with @tylermcginnis . covered REFERENTIAL EQUALITY, useLayoutEffect, useSyncExternalStore and useEffectEvent. Having issues with a particular test case in the DATA TABLE challenge. Can't wait to start with the rebuilding useHooks chapter. till
0
0
4
#100DaysOfCode (56/100).➡️Learning how the existing usehooks library was built. ➡️Learned about useSyncExternalStore hook. ✅Created usePreferredLanguage hook. ✅Created useFavicon hook. #buildinginpublic #React
0
0
8
🚀 Next.js Weekly #42:. → Instant Search with `useOptimistic`.→ Vercel: Attack Challenge Mode.→ useSyncExternalStore.→ Self-Hosted OAuth Authz.→ React Will Be Compiled. and more
2
1
12
Ok time's up! The answer is useSyncExternalStore. The part I didn't show was the onChange function, which triggers an update to an external store in a parent component. This causes React to re-render synchronously, but the setState in the Value component still runs
9
19
193
@chribjel @firatoezcan @tan_stack There are dozens of articles online on this topic and a few oss libs implementing useLocalStorage() using useSyncExternalStore. Last newsletter issue had one BTW:.
4
3
137
.@kentcdodds finally made useSyncExternalStore click for me. It stops UI tearing when React meets browser APIs or custom stores, and the real trick is keeping subscribe and getSnapshot stable outside the component
1
2
11