Skip to content

Commit 4e33d77

Browse files
authored
perf(core/client): add useTransition when switch route (#2313)
1 parent beb6b59 commit 4e33d77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/runtime/ClientApp.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ export function ClientApp({
2222
<DataContext.Provider
2323
value={useMemo(() => ({ data, setData }), [data, setData])}
2424
>
25-
<BrowserRouter>
25+
<BrowserRouter
26+
future={{
27+
v7_relativeSplatPath: true,
28+
v7_startTransition: true,
29+
}}
30+
>
2631
<UnheadProvider head={head}>
2732
<App />
2833
</UnheadProvider>

0 commit comments

Comments
 (0)