The Issue
Currently working on a project using Next.js and facing a challenge: needing to hide or replace content based on the selected category without reloading the page or navigating to another route. Furthermore, ensuring that when the page is reloaded (e.g. by pressing F5), the content remains unaffected.
Exploring Solutions
Upon exploring Next.js' showcase page, it seems possible through a feature called 'Shallow routing'. This allows for updating the URL without forcing a full reload of the page. This is what I have gathered so far. Any insights on how to dynamically update content based on category selection would be greatly appreciated!
Thank you in advance!