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
I have two request, the second request rely one first request result , Follow the swr document: const { data: user } = useSWR('/api/user') const { data: projects } = useSWR(() => '/api/projects?uid=' + user.id)
if condition changed, I need refresh, how could refresh follow this A->B flow? and do I have the same loading status flow:
A data loading ---> A data fetch suc ---> B data loading ----> B data fetch suc ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have two request, the second request rely one first request result , Follow the swr document:
const { data: user } = useSWR('/api/user') const { data: projects } = useSWR(() => '/api/projects?uid=' + user.id)
if condition changed, I need refresh, how could refresh follow this A->B flow? and do I have the same loading status flow:
A data loading ---> A data fetch suc ---> B data loading ----> B data fetch suc ?
Beta Was this translation helpful? Give feedback.
All reactions