Drop the unused root element provider

RootElementProvider was exported but never used: nothing supplies a root
element, so every consumer falls back to the document body. Knip reports
it, which is what is failing CI.

M1 adds a provider back along with the component that mounts Element Call
into a container. Until then there is nothing to provide.
This commit is contained in:
Valere
2026-09-02 19:46:44 +02:00
parent e68d1d1b5f
commit 873dfdbfbd
+3 -2
View File
@@ -24,10 +24,11 @@ import { createContext, use } from "react";
* be decorated correctly and styled incorrectly, silently. Until those are * be decorated correctly and styled incorrectly, silently. Until those are
* scoped, treat this as preparation rather than a working seam. * scoped, treat this as preparation rather than a working seam.
*/ */
// No provider is exported yet: nothing supplies a root element, so every
// consumer falls back to the document body. M1 adds one along with the
// component that mounts Element Call into a container.
const RootElementContext = createContext<HTMLElement | null>(null); const RootElementContext = createContext<HTMLElement | null>(null);
export const RootElementProvider = RootElementContext.Provider;
/** /**
* The element Element Call should decorate and portal into. * The element Element Call should decorate and portal into.
* *