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
The triggerFetchData callback was calling setState, which beginning in
React 18 triggers a re-render when used with renderToString. That meant
every component that called useFetch on the server experienced a
double render. This commit eliminates the extra render by using
useRef rather than useState to track the count.
0 commit comments