Pnp-modern-search: Search reverting back to previous search when using pagination

Created on 23 Mar 2021  路  4Comments  路  Source: microsoft-search/pnp-modern-search

__Remove the above section before submitting, and removal of the below template will result in the issue being closed.__

V3.18.1

When starting a new search having previously searched something and used the pagination it will return to the old search when using pagination with the new search

Steps to reproduce the behavior:

  1. Search all
  2. Click on Page 2
  3. Search for something else (search goes to new search)
  4. Go to Page 2 (reverts back to old search)

Expected behavior
Search will continue with new search when on next page

image
image
image

  • Browser tested in chrome
bug v3

All 4 comments

I have repro and have to figure out the best approach as it impacts sorting as well.

That looks to work a treat, thanks so much :). Will keep testing. Really interesting reading through the code trying to figure out how it all works haha

@thebigs1992 Fixing these things in v3 is not fun as the codebase is not optimal and you patch on patching sort of. The caveat with my fix is that you get two API queries for some user scenarios - but figured that was better to ensure all UX components were in proper sync.

Was this page helpful?
0 / 5 - 0 ratings