We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38410d7 commit 6022972Copy full SHA for 6022972
packages/solid-router/src/Transitioner.tsx
@@ -31,9 +31,9 @@ export function Transitioner() {
31
const previousIsPagePending = usePrevious(isPagePending)
32
33
if (!router.isServer) {
34
- router.startTransition = (fn: () => void) => {
+ router.startTransition = async (fn: () => void | Promise<void>) => {
35
setIsTransitioning(true)
36
- fn()
+ await fn()
37
setIsTransitioning(false)
38
}
39
0 commit comments