From 4170f9a2fa357afe6d25526d762b3e7a7bbf3e1b Mon Sep 17 00:00:00 2001 From: "shuilan.cj" Date: Thu, 26 Oct 2023 10:07:37 +0800 Subject: [PATCH] fix: rsc url --- packages/runtime/src/runRSCClientApp.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime/src/runRSCClientApp.tsx b/packages/runtime/src/runRSCClientApp.tsx index c07392a5cb..213b32eaee 100644 --- a/packages/runtime/src/runRSCClientApp.tsx +++ b/packages/runtime/src/runRSCClientApp.tsx @@ -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')); } \ No newline at end of file