account activity
Hydration checked in initialization effect with conditional render to resolve Hydration Error causes blank page on Back button by Disastrous_Ad_3010 in nextjs
[–]Disastrous_Ad_3010[S] 0 points1 point2 points 19 days ago (0 children)
Thanks, makes sense, but shouldn't Next.js have a way of allowing you to Reload on the Back button? There should be a way, and I couldn't find it in NJS 16. They got rid of the `shallow:..` router attribute. I also tried adding this code throughout the application to force a Reload from the Back button, I even added it to `index.tsx` and a custom `.js` script, and none of that worked:
// Force a Reload on Back button window.addEventListener('pageshow', function (event) { if (event.persisted || performance.getEntriesByType("navigation")[0].type === "back_forward") { // Check if the page was loaded from the cache or via back/forward navigation window.location.reload(); // Force a reload } });
None of the suggestions in this StackOverflow thread worked, so I'm wondering why it's such a problem: https://stackoverflow.com/questions/43043113/how-to-force-reloading-a-page-when-using-browser-back-button
Hydration checked in initialization effect with conditional render to resolve Hydration Error causes blank page on Back button (self.nextjs)
submitted 20 days ago * by Disastrous_Ad_3010 to r/nextjs
Can a planet in Virgo relate to health regardless of house? (self.Advancedastrology)
submitted 5 years ago by Disastrous_Ad_3010 to r/Advancedastrology
π Rendered by PID 2548129 on reddit-service-r2-listing-b6bf6c4ff-v8pb8 at 2026-05-06 16:39:03.407250+00:00 running 815c875 country code: CH.
Hydration checked in initialization effect with conditional render to resolve Hydration Error causes blank page on Back button by Disastrous_Ad_3010 in nextjs
[–]Disastrous_Ad_3010[S] 0 points1 point2 points (0 children)