Skip to content

Commit 20bd6bd

Browse files
committed
fix #464 flaky hydration bail out
1 parent f84b81f commit 20bd6bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/data/events.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { delegateEvents } from "solid-js/web";
2-
import { onCleanup } from "solid-js";
2+
import { onCleanup, sharedConfig } from "solid-js";
33
import type { RouterContext } from "../types.js";
44
import { actions } from "./action.js";
55
import { mockBase } from "../utils.js";
@@ -64,6 +64,7 @@ export function setupNativeEvents(
6464
const state = a.getAttribute("state");
6565

6666
evt.preventDefault();
67+
if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = true;
6768
navigateFromRoute(to, {
6869
resolve: false,
6970
replace: a.hasAttribute("replace"),

0 commit comments

Comments
 (0)