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.
Convenience hook for canvas components: publishes the supplied
idsinto the surrounding<SelectionContextProvider>whenever the content ofidschanges. No-op when there's no provider in scope.Used by
<SceneCanvas>internally to auto-publish; bare-Canvas consumers calluseSelectionContext()andpublishSelectiondirectly.