ink-cartridge
    Preparing search index...

    Type Alias GotoScreenFn

    GotoScreenFn: <C extends React.ComponentType<any>>(
        component: C,
        ...args: GotoScreenArgs<C>,
    ) => void

    Function signature for jumping to any registered screen across branches.

    The trailing arguments follow GotoScreenArgs: params is optional when the target declares no required props, and options carries SkipOptions.onlyAttribute. A target that is already on the current path (the current screen or one of its ancestors) takes the params in place of its own and is remounted by default; pass { onlyAttribute: true } to update only its props — that keeps the mounted instance for the current screen, while an ancestor mounts fresh either way and keeps only its stored regionFocus map.

    Type Declaration

      • <C extends React.ComponentType<any>>(
            component: C,
            ...args: GotoScreenArgs<C>,
        ): void
      • Type Parameters

        • C extends React.ComponentType<any>

          The target component type.

        Parameters

        • component: C

          The target component (must be registered).

        • ...args: GotoScreenArgs<C>

        Returns void