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
Click on show more again. You will notice that the paginated products are duplicated
Describe the solution you'd like
This bug is happening because the apollo client is caching the paginated result. In other words, when you navigate to the Apparel & Accessories` again, the react apollo returns the page 1 and 2.
To solve this problem, we need to save the pagination on the cache instead of using the pageState
Tried simulationBehaviour: "default" as well and many other things. Tried linking search-result 3.x on a workspace and debug it myself, but seems to be related to the "to" param not being updated properly
#373 - there was an attempt to fix this here but doesn't work, unless I'm missing something.
LE:
After further testing, this seems to be happening only on one account and only when going from first page to second page, then from second page to third page (this step duplicates page 2 results again and stays the same in the URL) after that, it renders the products correctly, but the 2nd page is always duplicated
Is your feature request related to a problem? Please describe.
Home & Decor
categoryApparel & Accessories
Describe the solution you'd like
This bug is happening because the apollo client is caching the paginated result. In other words, when you navigate to the Apparel & Accessories` again, the react apollo returns the page 1 and 2.
To solve this problem, we need to save the pagination on the cache instead of using the
pageState
The step by step to solve this is:
from
andto
to theproductSearch
schemafrom
andto
on all search resolversfrom
andto
to thesearchResultV3
search-result
to use thefrom
andto
from the query instead of thepageState
The text was updated successfully, but these errors were encountered: