Skip to content

Commit

Permalink
fix: bring back root suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed May 3, 2024
1 parent f5767cb commit 036c12e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-router/src/RouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ export function RouterContextProvider<
const routerContext = getRouterContext()

const provider = (
// <React.Suspense fallback="Loading...">
<routerContext.Provider value={router}>
{children}
<Transitioner />
</routerContext.Provider>
// </React.Suspense>
<React.Suspense fallback={null}>
<routerContext.Provider value={router}>
{children}
<Transitioner />
</routerContext.Provider>
</React.Suspense>
)

if (router.options.Wrap) {
Expand Down

0 comments on commit 036c12e

Please sign in to comment.