Skip to main content

withHydrationBoundary

Callable

  • withHydrationBoundary<P, T, S>(Component: HydrationComponent<P, T, S>, initializer: Initializer<undefined, T, S>): HydrationBoundary<P & { id: string }>
  • withHydrationBoundary<P, T, S>(Component: HydrationComponent<P, T, S>, initializer: Initializer<undefined, T, S>, useHydrationId: () => string): HydrationBoundary<P>
  • withHydrationBoundary<P, T, S, U>(Component: HydrationComponent<P, T, S>, initializer: Initializer<U, T, S>, useHydrationId: undefined, useProps: (props: P) => U): HydrationBoundary<P & { id: string }>
  • withHydrationBoundary<P, T, S, U>(Component: HydrationComponent<P, T, S>, initializer: Initializer<U, T, S>, useHydrationId: () => string, useProps: (props: P) => U): HydrationBoundary<P>

  • Type parameters

    • P: object
    • T
    • S

    Parameters

    • Component: HydrationComponent<P, T, S>
    • initializer: Initializer<undefined, T, S>

    Returns HydrationBoundary<P & { id: string }>