<DeploymentInitialized/> component

<DeploymentInitialized /> is the quiet branch. It waits for the deployment request to settle before it renders its children.

Usage

The following example shows a basic usage of <DeploymentInitialized />.

import { DeploymentProvider, DeploymentInitialized } from '@wacht/nextjs';export default function DeploymentInitializedUsage() {  return (    <>      <DeploymentProvider publicKey={PUBLIC_KEY}>        <DeploymentInitialized>{children}</DeploymentInitialized>      </DeploymentProvider>    </>  );}

Notes

  • Use it when you want to avoid flashing signed-out UI before the deployment context is ready.
  • It returns null while deployment loading is still in progress.

On this page