mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 13:52:46 -07:00
feat: add support for client only lazy loading with dynamic (#331)
This commit is contained in:
+5
-3
@@ -1,11 +1,13 @@
|
||||
// This file is auto-generated by Tuono
|
||||
|
||||
import { createRoute, dynamic } from 'tuono'
|
||||
import { createRoute, __tuono__internal__lazyLoadRoute } from 'tuono'
|
||||
|
||||
import RootLayoutImport from './routes/__layout'
|
||||
|
||||
const IndexImport = dynamic(() => import('./routes/index'))
|
||||
const PostscatchallImport = dynamic(
|
||||
const IndexImport = __tuono__internal__lazyLoadRoute(
|
||||
() => import('./routes/index'),
|
||||
)
|
||||
const PostscatchallImport = __tuono__internal__lazyLoadRoute(
|
||||
() => import('./routes/posts/[...catch_all]'),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user