We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a50b50 commit 7a0dfaeCopy full SHA for 7a0dfae
packages/runtime/src/createRoot.ts
@@ -36,6 +36,7 @@ import {
36
isolatedTemplateRegistryMap,
37
registerIsolatedTemplates,
38
} from "./internal/IsolatedTemplates.js";
39
+import { hooks } from "./internal/Runtime.js";
40
41
export interface CreateRootOptions {
42
portal?: HTMLElement;
@@ -151,6 +152,9 @@ export function unstable_createRoot(
151
152
formStateStoreMap: new Map<string, DataStore<"FORM_STATE">>(),
153
isolatedRoot,
154
unsafe_penetrate,
155
+ sys: {
156
+ ...hooks?.auth?.getAuth(),
157
+ },
158
} as Partial<RuntimeContext> as RuntimeContext;
159
160
if (url) {
0 commit comments