#router.refresh() for client component?

9 messages · Page 1 of 1 (latest)

night oyster
#

Is there a router.refresh() for client components? So i want to call it to reload my component and so re do any client side code?

I basically have a client component that does something, then when it completes I want to reload the component.

night oyster
#

that only re-renders server components, but my client component for example doesnt rerun all the code

#

e.g. rerun a useEffect

candid hornet
candid hornet
night oyster
#

i was hoping to avoid using window

candid hornet
#

and update that key