From 39ee1ba6ea5c21f546885cb85e6bd3068861a694 Mon Sep 17 00:00:00 2001
From: Michael Dougall <6801309+itsdouges@users.noreply.github.com>
Date: Tue, 24 Dec 2024 07:33:26 +1100
Subject: [PATCH] Refactor dynamic root algorithm to apply on exit rather than
 immediately

adeira-source-id: 274e8bad07b4d3b2726246528256189dd58973d5
---
 .../test-fixture/src/selection-edge-case.tsx  | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 examples/test-fixture/src/selection-edge-case.tsx

diff --git a/examples/test-fixture/src/selection-edge-case.tsx b/examples/test-fixture/src/selection-edge-case.tsx
new file mode 100644
index 00000000..c280921a
--- /dev/null
+++ b/examples/test-fixture/src/selection-edge-case.tsx
@@ -0,0 +1,23 @@
+/**
+ * Copyright (c) Michael Dougall. All rights reserved.
+ *
+ * This source code is licensed under the GPL-3.0 license found in the LICENSE
+ * file in the root directory of this source tree.
+ */
+import { type ReactNode } from "react";
+
+function ContextProvider({ children }: { children: ReactNode }) {
+  return children;
+}
+
+export function UnknownCustomComponentResolvedHostElements() {
+  return (
+    <>
+      <ContextProvider>
+        <mesh>
+          <boxGeometry />
+        </mesh>
+      </ContextProvider>
+    </>
+  );
+}