Replies: 1 comment
-
Indeed check this Line 12 in 7dfd890 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
we call
const { data, error } = useSWR('/api/user/123', fetcher)
and when not data
!data
, we show loading and when data is fetched we show data. so how does it happen automatically ? Does useSWR use somesetState
internally so that react component automatically updates?Beta Was this translation helpful? Give feedback.
All reactions