From 873dfdbfbd77e0d80dfba7d29e35223ee251d336 Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 2 Sep 2026 19:46:44 +0200 Subject: [PATCH] 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. --- src/RootElementContext.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RootElementContext.ts b/src/RootElementContext.ts index b46573d38..d8211c74b 100644 --- a/src/RootElementContext.ts +++ b/src/RootElementContext.ts @@ -24,10 +24,11 @@ import { createContext, use } from "react"; * be decorated correctly and styled incorrectly, silently. Until those are * 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(null); -export const RootElementProvider = RootElementContext.Provider; - /** * The element Element Call should decorate and portal into. *