#router.refresh() for client component?
9 messages · Page 1 of 1 (latest)
you do have router.refresh() (and it is named like that as well)
that only re-renders server components, but my client component for example doesnt rerun all the code
e.g. rerun a useEffect
in that case just do a standard browser reload? window.location.reload()
but for this you can add a key to the dep array of useEffect
i was hoping to avoid using window
and update that key