Skip to content

Commit

Permalink
Don't check in spa mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 24, 2024
1 parent daa8a74 commit cb8024f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-react/browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export function RemixBrowser(_props: RemixBrowserProps): ReactElement {
(initialMatches || []).length !== ssrMatches.length ||
!(initialMatches || []).every((m, i) => ssrMatches[i] === m.route.id);

if (hasDifferentSSRMatches) {
if (hasDifferentSSRMatches && !window.__remixContext.isSpaMode) {
let ssr = ssrMatches.join(",");
let client = (initialMatches || []).map((m) => m.route.id).join(",");
let errorMsg =
Expand Down

0 comments on commit cb8024f

Please sign in to comment.