Live with Kent: Fixing some react-query usage in the Epic React Bookshelf app

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I'm using the v3 of react query, It seems can't not define the staleTime and cacheTime in the setQueryData.
But requiring to define the config in the global queryClient or individual query.
And the default staleTime seems to be 0, so if we didn't define it then it'll automatically be staled.
So I'm wondering should we need to set the staleTime?
Hoping you to record the video for cache management with v3, and explain some of these.

yanhuan
join shbcf.ru