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]
pull/3037/head
Steve Ruiz 2024-03-02 17:17:09 +00:00 zatwierdzone przez GitHub
rodzic 66a8b0a4a6
commit 52df06b014
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -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!)

Wyświetl plik

@ -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",