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
When using useSWRInfinite with {revalidateOnMount: true, revalidateFirstPage: false}, if there is a useLayoutEffect, the component will not make a new request when it is mounted.
#3042
Open
turnflowerdown opened this issue
Nov 19, 2024
· 0 comments
When using useSWRInfinite with {revalidateOnMount: true, revalidateFirstPage: false}, if there is a useLayoutEffect with change state in it, the component will not make a new request when it is again mounted.
Expected Behavior
Enter the component again need to send a new request
Repro Steps / Code Example
Load components for the first time,success send a request
Bug report
Description / Observed Behavior
When using useSWRInfinite with {revalidateOnMount: true, revalidateFirstPage: false}, if there is a useLayoutEffect with change state in it, the component will not make a new request when it is again mounted.
Expected Behavior
Enter the component again need to send a new request
Repro Steps / Code Example
Additional Context
The text was updated successfully, but these errors were encountered: