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
Hey everyone, first of all, thank you for this great library.
I'm using it on a website that requires infinite scroll for items with the same initial URL.
Unfortunately, setSize changes the size for both instances, but I need them to be isolated.
Some of the views react to user actions and need to add/remove items, and this behavior should only occur in that specific view, not on all of them.
Description / Observed Behavior
Can't use useSWRInfinite more than once with the same initial URL.
Expected Behavior
Be able to use it multiple times with the same initial URL, and for each instance to behave in isolation.
The text was updated successfully, but these errors were encountered:
ddoice
changed the title
Non Isolated Behavior in multiple useSWRInfinite with Same URL
Non Isolated Behavior in multiple useSWRInfinite with same URL
Feb 19, 2025
ddoice
changed the title
Non Isolated Behavior in multiple useSWRInfinite with same URL
Non isolated behavior in multiple useSWRInfinite with same URL
Feb 19, 2025
Bug report
Hey everyone, first of all, thank you for this great library.
I'm using it on a website that requires infinite scroll for items with the same initial URL.
Unfortunately,
setSize
changes the size for both instances, but I need them to be isolated.Some of the views react to user actions and need to add/remove items, and this behavior should only occur in that specific view, not on all of them.
Description / Observed Behavior
Can't use useSWRInfinite more than once with the same initial URL.
Expected Behavior
Be able to use it multiple times with the same initial URL, and for each instance to behave in isolation.
Repro Steps / Code Example
Example
Additional Context
SWR version 2.3.2
The text was updated successfully, but these errors were encountered: