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

Shallow routing does not maintain state #129

Closed
svo393 opened this issue Mar 30, 2021 · 2 comments
Closed

Shallow routing does not maintain state #129

svo393 opened this issue Mar 30, 2021 · 2 comments

Comments

@svo393
Copy link

svo393 commented Mar 30, 2021

What is the problem?

When changing url query through or router.push with { shallow: true } the page acts like it is the first render. It defeats the purpose of using usePaginatedQuery, making react-query loose it's last successfully resolved data from previous page. In Next.js that doesn't happen.

Paste all your error logs here:

N/A

Paste all relevant code snippets here:

N/A

What are detailed steps to reproduce this?

  1. Go to [https://codesandbox.io/s/cranky-tereshkova-bveyr?file=/app/pages/router.tsx]
  2. Go to /router?page=2 in the internal browser
  3. Click links
  4. Check the console

Run blitz -v and paste the output here:

Blitz CodeSandbox Example from blitz.com home page
@sakulstra
Copy link
Contributor

i think that's a duplicate of #204

@flybayer
Copy link
Member

Closed in blitz-js/blitz#2173

@itsdillon itsdillon transferred this issue from blitz-js/blitz Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants