-
Good morning 👋🏻 I would like to know if this behaviour is intended. Every time the variables change, the initialData is kept but new pages are added. Here's an example: Imagine initialData has 10 items. If the user changes any of the filters shown, the filterAsQuery string changes. Therefore, a new request is done. However, the initialData is kept and shown even though it's not related. In this case, the data returns two pages: one with 10 items and another one with 0 items.
I would like that every time the filters change, this initialData is not shown anymore. ¿Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Woah, I finally saw something: #355 (reply in thread)
|
Beta Was this translation helpful? Give feedback.
-
I think a better way would be to bind initialData to the queryKey where you'd expect initialData to do something. I'll take the
of course ew can extract |
Beta Was this translation helpful? Give feedback.
Woah, I finally saw something: #355 (reply in thread)
It feels a bit confusing but it works 🤷🏼♀️