Skip to content

Commit 00f7685

Browse files
committed
chore(rsc): example to coordinate react transition and window.history
1 parent df8b800 commit 00f7685

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugin-rsc/examples/basic/src/framework/entry.browser.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ async function main() {
8383
}
8484
}
8585

86+
function useSetupNavigation() {
87+
React.useInsertionEffect
88+
React.useReducer
89+
}
90+
8691
// a little helper to setup events interception for client side navigation
8792
function listenNavigation(onNavigation: () => void) {
8893
window.addEventListener('popstate', onNavigation)

0 commit comments

Comments
 (0)