onHydrationEnd()
hook
You can use the onHydrationEnd()
hook to implement initialization that needs to be executed once the page has finished hydrating.
The onHydrationEnd()
hook requires Client Routing.
TypeScript
Don't omit ReturnType<OnHydrationEndAsync>
otherwise TypeScript won't strictly check the return type.
See API > pageContext
> Typescript for more information on how to extend pageContext
with your own extra properties.
See also