Comments (4)
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:
- Repo: https://github.com/federicobadini/parameter-reset-test-v14
- Demo: https://parameter-reset-test-v14.vercel.app/
from next.js.
@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.
@mortz123 I personally rolled back to 14.1.4 which does not suffer from this issue.
from next.js.
It can be checked on v14.2.3, too.
In my case,
- user visits page with search param (ex. ?type=1)
GOOD
- if user performs router replace action with other search param (ex. ?type=2)
GOOD
- 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)
- revalidatePath doesn't invalidate the edge cache of serverless functions HOT 1
- Webpack Loader set from Webpack Plugin with Next Compiler can't accept value contains `!(exclamation mark)`
- Usage of Recoil in Nextjs app (turborepo) induces a TypeError: Cannot destructure property 'ReactCurrentDispatcher. HOT 5
- Next js build issue, FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
- Partial Prerendering does a full fetch of the whole page on every page view? HOT 2
- The dev container config creates a container with node version 16 which is no longer supported. HOT 1
- When a Server Action that calls `redirect` is composed with an Action on the Client `undefined` is returned to the Client. HOT 4
- NextJs[^14.2.3] build error: Cannot read properties of undefined (reading 'hasOwnProperty') HOT 1
- Turbo: json-schema-to-typescript package errors (Cannot convert undefined or null to object)
- npm run dev never finish to compile HOT 3
- project builds in Vercel but link only populates "Application error: a server-side exception has occurred" and Runlog indicates PrismaClientInitializationError
- Docs: App Router "Adding Authentication" page does not 'use server' in code. HOT 2
- NextURL strips trailing slashes, even when config is set to manual trailing slash handling
- Application Crash when google translated and dropdown is chose. HOT 2
- Page is remounted when params change in (optional) catch all routes
- Middleware URL normalization does not respect `skipTrailingSlashRedirect` HOT 2
- Docs: "Edit this Page on Github" Button links to nonexistent paths on some pages HOT 3
- Turbopack error with next-auth middleware: `_react.default.createContext is not a function` HOT 3
- Suspense does not work as expected in Page Router index.js HOT 1
- Getting error During Build HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.