A few more async routes (#3023)
This PR makes a few more of our routes async. ### Change Type - [x] `internal` — Any other changes that don't affect the published package[^2]
This commit is contained in:
parent
66a8b0a4a6
commit
52df06b014
2 changed files with 9 additions and 8 deletions
|
@ -27,7 +27,7 @@ if (!basicExample) throw new Error('Could not find initial example')
|
|||
const router = createBrowserRouter([
|
||||
{
|
||||
path: '*',
|
||||
element: <div>404</div>,
|
||||
lazy: async () => ({ element: <div>404</div> }),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
|
@ -44,11 +44,11 @@ const router = createBrowserRouter([
|
|||
},
|
||||
{
|
||||
path: 'develop',
|
||||
element: <Develop />,
|
||||
lazy: async () => ({ element: <Develop /> }),
|
||||
},
|
||||
{
|
||||
path: 'end-to-end',
|
||||
element: <EndToEnd />,
|
||||
lazy: async () => ({ element: <EndToEnd /> }),
|
||||
},
|
||||
...examples.flatMap((exampleArray) =>
|
||||
exampleArray.value.flatMap((example) => [
|
||||
|
@ -77,6 +77,7 @@ const router = createBrowserRouter([
|
|||
])
|
||||
),
|
||||
])
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const rootElement = document.getElementById('root')!
|
||||
const root = createRoot(rootElement!)
|
||||
|
|
|
@ -38360,8 +38360,8 @@
|
|||
},
|
||||
{
|
||||
"kind": "Reference",
|
||||
"text": "TLHistoryMark",
|
||||
"canonicalReference": "@tldraw/editor!TLHistoryMark:type"
|
||||
"text": "TLCommand",
|
||||
"canonicalReference": "@tldraw/editor!TLCommand:type"
|
||||
},
|
||||
{
|
||||
"kind": "Content",
|
||||
|
@ -38369,8 +38369,8 @@
|
|||
},
|
||||
{
|
||||
"kind": "Reference",
|
||||
"text": "TLCommand",
|
||||
"canonicalReference": "@tldraw/editor!TLCommand:type"
|
||||
"text": "TLHistoryMark",
|
||||
"canonicalReference": "@tldraw/editor!TLHistoryMark:type"
|
||||
},
|
||||
{
|
||||
"kind": "Content",
|
||||
|
@ -39151,7 +39151,7 @@
|
|||
},
|
||||
{
|
||||
"kind": "Content",
|
||||
"text": ") => (() => void | undefined) | undefined | void"
|
||||
"text": ") => (() => undefined | void) | undefined | void"
|
||||
},
|
||||
{
|
||||
"kind": "Content",
|
||||
|
|
Loading…
Reference in a new issue