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
-
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