next/Link not refreshing page
Answered
Black and yellow mud dauber posted this in #help-forum
Black and yellow mud dauberOP
state is preserved between renders but need the page to refresh when the user navigates to it
Answered by Black and yellow mud dauber
used a tag, rather than next/link. Link navigates to a new page while preserving that page state, while a tag re-renders the new page
4 Replies
Do you mean a full refresh? You can do that with
location.reload()Black and yellow mud dauberOP
had that option down, just wanted to know if i could do that from next rather than vanilla js
Ah no, this is completely fine if you meant a full page refresh
Black and yellow mud dauberOP
used a tag, rather than next/link. Link navigates to a new page while preserving that page state, while a tag re-renders the new page
Answer