We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f84b81f commit 20bd6bdCopy full SHA for 20bd6bd
1 file changed
src/data/events.ts
@@ -1,5 +1,5 @@
1
import { delegateEvents } from "solid-js/web";
2
-import { onCleanup } from "solid-js";
+import { onCleanup, sharedConfig } from "solid-js";
3
import type { RouterContext } from "../types.js";
4
import { actions } from "./action.js";
5
import { mockBase } from "../utils.js";
@@ -64,6 +64,7 @@ export function setupNativeEvents(
64
const state = a.getAttribute("state");
65
66
evt.preventDefault();
67
+ if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = true;
68
navigateFromRoute(to, {
69
resolve: false,
70
replace: a.hasAttribute("replace"),
0 commit comments