Remove stale state on route change #223
Unanswered
augustomallmann
asked this question in
Q&A
Replies: 1 comment
-
Hi, Is there a public repo available I can take a look at? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I'm having an issue developing my category pages using dynamic route using getEdgeProps(). The first page of each category is generated as expected, but when I switch between routes, the state keeps stale, not updating the UI.
I printed the props on the console and it updates correctly on every route change, but the state doesn't. Is there a workaround for this issue?
The routes are displayed as the example:
Description: When I click on a route, it should update the state, but it keeps stale, showing the same as the route before.
Dynamic route code:
PublicationsGrid Component:
Beta Was this translation helpful? Give feedback.
All reactions