Skip to content

Commit

Permalink
add doc link for popstate event
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 12, 2024
1 parent 443a54c commit 7942cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/02.side-effects/01.problem.effects/README.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# useEffect

👨‍💼 We want the query to update as the query params change through a `popstate`
👨‍💼 We want the query to update as the query params change through a
[`popstate`](https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event)
event. Once you added the `useEffect` hook, you then have to prevent the default
full refresh of the page when the user clicks the back/forward button.

Expand Down

0 comments on commit 7942cfc

Please sign in to comment.