Skip to main content

RootClientLifecycle

RootClientLifecycle = object

Lifecycle methods for your app's client-side component. Available via rootClient.lifecycle.

Methods​

restart()​

restart(relativeUrl?: string): void

Reloads your app's client. If relativeUrl is provided, navigates to that URL instead of reloading the current page.

Parameters​

ParameterTypeDescription
relativeUrl?stringA relative URL to navigate to after restart. Optional; omit to reload the current page.

Returns​

void