Skip to content

Commit

Permalink
create-pages hack for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 25, 2024
1 parent ff3b69f commit d3bb6d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/waku/src/router/create-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,11 +826,14 @@ export const new_createPages = <
{ id: 'root' },
createNestedElements(routeChildren),
),
// TEMP experimenting with fallbackElement
// HACK this is hard-coded convention
// FIXME we should revisit the error boundary use case design
fallbackElement: createElement(
Slot,
{ id: 'root', unstable_renderPrev: true },
createElement('h1', null, 'fallback element'),
layoutPaths.includes('/')
? createElement(Slot, { id: 'layout:/', unstable_renderPrev: true })
: null,
),
};
},
Expand Down

0 comments on commit d3bb6d4

Please sign in to comment.