Replies: 4 comments 7 replies
|
What exactly are you trying to do that requires a refetch of |
1 reply
|
Haven't tried it myself, but I was looking into this and found this idea , hope it helps. |
0 replies
|
I had success by essentially forcing a client-side redirect using import { useRouter } from 'next/router';
// In your component body
const router = useRouter()
// call this method whenever you want to refresh server-side props
const refreshData = () => router.replace(router.asPath);Credit to Brandon for the idea! |
6 replies
|
This approach is now causing bugs like this one So use this with caution :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to trigger reloading server side props from the client without reloading the whole page?
All reactions