Skip to content

Commit cbf2ee5

Browse files
committed
Make setup callback optional for when in SSR mode
1 parent a1da288 commit cbf2ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/createInertiaApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type AppComponent = ComponentType<App> & { render: () => SvelteRenderResult }
1212
interface CreateInertiaAppProps {
1313
id?: string
1414
resolve: ComponentResolver
15-
setup: (props: {
15+
setup?: (props: {
1616
el: Element
1717
App: ComponentType<App>
1818
props: {

0 commit comments

Comments
 (0)