Closed Regaron closed 2 years ago
@Regaron We have undocumented API now in latest version of next.js could let you do that. Docs update will come soon.
Example
import { unstable_useRefreshRoot } from 'next/streaming'
export deafult function Page() {
cons refresh = unstable_useRefreshRoot()
// ...
return <Content><button onClick={refresh}>update</button></Content>
}
Would love to hear the feedback from you
How can we rerender(refetch) RSC to show updated data?