Code Monkey home page Code Monkey logo

Comments (4)

federicobadini avatar federicobadini commented on July 20, 2024

Our ecommerce collection pages are often accessed with pre-populated query parameters, and this bug is preventing to go back to the unfiltered version of each collection.

As mentioned by @georgesofianosgr, when landing on a URL with query parameters and then navigating to the same URL without parameters, the RSC fails to execute properly.
Additionally, we've observed another related issue: after multiple transitions between URLs with and without search parameters, the page abruptly stops rendering any markup, with no errors appearing in the browser console.

You can view a video demonstrating both of these issues here:

Screen.Recording.2024-05-16.at.10.14.15.mov

Should you require it for further analysis, here's the references to the demo of the above video:

from next.js.

mortz123 avatar mortz123 commented on July 20, 2024

@georgesofianosgr @federicobadini hey guys, did you find any solution? i found myself in the same scenario - i followed next's guide to search and pagination (https://nextjs.org/learn/dashboard-app/adding-search-and-pagination) exactly but i still get this issue.

from next.js.

federicobadini avatar federicobadini commented on July 20, 2024

@mortz123 I personally rolled back to 14.1.4 which does not suffer from this issue.

from next.js.

jinwoo0103 avatar jinwoo0103 commented on July 20, 2024

It can be checked on v14.2.3, too.

In my case,

  1. user visits page with search param (ex. ?type=1) GOOD
  2. if user performs router replace action with other search param (ex. ?type=2) GOOD
  3. if user performs router replace action with search param deleted, it shows first visited state (ex. ?type=1) BAD

So, I think that nextjs does not distinguish "first visited search param state" and "no search param state".

from next.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.