Skip to content

Commit e9fd55d

Browse files
committedJun 18, 2024
fix #449 No JS submissions not working
1 parent f311f4a commit e9fd55d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/mean-tables-flash.md

+5
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

+1-1
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)
Please sign in to comment.