Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stale search response displayed in the product detail page before new search response #18757

Open
anatigullacovetrus opened this issue Apr 22, 2024 · 0 comments

Comments

@anatigullacovetrus
Copy link

Describe the bug
Stale search response displayed in the product detail page before new/correct search response is displayed. Happens as the time for search response is slow on the real website.

Tell us the version of Spartacus

  • Library version: "@spartacus/schematics": "^6.8.0"

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://spartacus-demo.eastus.cloudapp.azure.com:444/powertools-spa/en/USD
  2. Enter "tool" in the search
  3. Response "Home - 263 results for Tools" and data is displayed
  4. Click on Homepage
  5. Enter "Power" in the search
  6. Issue: Response "Home - .. for Tools" is displayed for a second and then "Home .. results for Power" is displayed
  7. In our website, as the response time for second search is little late, the user will see stale first search response results.

Note: To slow down above search results and see stale results, open the network tab on debug tools and apply a "Slow 3g" throttling.

Please share what setup can be done to clear the first search results from the cache

Expected behavior
Correct Search results should be displayed, not old search results first and flicker with new search results

Desktop (please complete the following information):

  • Browser chrome
  • Version 124.0.6367.60

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant