Skip to content

Commit e9fd55d

Browse files
committed
fix #449 No JS submissions not working
1 parent f311f4a commit e9fd55d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/mean-tables-flash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/router": patch
3+
---
4+
5+
fix #449 No JS submissions not working

src/routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export function createRouterContext(
321321
setReference(lastTransitionTarget.value);
322322
setState(lastTransitionTarget.state);
323323
resetErrorBoundaries();
324-
submissions[1]([]);
324+
if (!isServer) submissions[1]([]);
325325
}).finally(() => {
326326
if (lastTransitionTarget !== newTarget) return;
327327

0 commit comments

Comments
 (0)