weasel API - v0.8.0
    Preparing search index...

    Function usePublishSelection

    • Experimental

      Convenience hook for canvas components: publishes the supplied ids into the surrounding <SelectionContextProvider> whenever the content of ids changes. No-op when there's no provider in scope.

      Used by <SceneCanvas> internally to auto-publish; bare-Canvas consumers call useSelectionContext() and publishSelection directly.

      Parameters

      • ids: readonly NodeId[]
      • Optionalkinds: readonly (string | undefined)[]

      Returns void