Documentation
    Preparing search index...

    Function useScope

    • Create (or reuse) a Scope bound to this component's lifecycle.

      Parameters

      • Optionallabel: string

        Optional label for diagnostics.

      Returns Scope

      Scope

      • The Scope is disposed during useEffect cleanup and on unmount.
      • If a parent Scope is provided via context, the created Scope is a child of it.
      • React cleans up effects before running the next effect and on unmount, which ensures our disposable lifecycle is correct. See React docs. https://react.dev/reference/react/useEffect