Загрузка видео...

Не удалось загрузить видео

На главную

✍️ New blog post: "Instant Search Params with React Server Components" The result of my three-week obsession with React's new useOptimistic hook — ultimately leading me to a much richer understanding of React transitions. Hope you enjoy!

103,117 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Ryan Florence
Ryan Florence2 лет назад

Didn’t read it yet… is useOptimistic for the pending search param you just selected to instantly go purple instead of after the data comes?

Фото профиля Sam Selikoff
Sam Selikoff2 лет назад

Correct 👍

Фото профиля Clovis Rosa
Clovis Rosa2 лет назад

That is the missing pice from the last podcast. Thank you very much! Next stop, YT video pleaseeee! 🙏🏾

Фото профиля Sam Selikoff
Sam Selikoff2 лет назад

Bingo!

Фото профиля Devon Govett
Devon Govett2 лет назад

Great post!

Фото профиля Sam Selikoff
Sam Selikoff2 лет назад

Thanks Devon!

Фото профиля François Best - 🦋
François Best - 🦋2 лет назад

Interesting! I built `nuqs` with the same idea in mind: keep the UI responsive, while the request is in flight and eventually settles, but that was before useOptimistic existed.

Фото профиля Sam Selikoff
Sam Selikoff2 лет назад

Very cool! I think higher-level hooks like this still have their place – you could useOptimistic under the hood so it gets the behavior around transitions for free.

Фото профиля Coding in Flow
Coding in Flow1 год назад

Why does setOptimistic have to be wrapped into startTransition? I tried moving it outside and the behavior looks the same.

Фото профиля Madat Bayramov
Madat Bayramov2 лет назад

Just read it, very detailed, and you've included a few good use cases. Worth to read

Похожие видео