Skip to content

Commit

Permalink
fix: rsc url
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjun1011 committed Oct 26, 2023
1 parent 3d12c94 commit 4170f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/runRSCClientApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ export function useRefresh() {
}

function getReactTree(location) {
return fetch(location + location.indexOf('?') ? '?rsc' : '&rsc');
return fetch(location + (location.indexOf('?') > -1 ? '&rsc' : '?rsc'));
}

0 comments on commit 4170f9a

Please sign in to comment.