Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

start.tsx

16 lines504 Bytes

1import { createStart } from '@tanstack/react-start'
2import { carAdapter, fooAdapter, nestedOuterAdapter } from './data'
3import { customErrorAdapter } from './CustomError'
4​
5export const startInstance = createStart(() => {
6 return {
7 defaultSsr: true,
8 serializationAdapters: [
9 fooAdapter,
10 carAdapter,
11 customErrorAdapter,
12 // only register nestedOuterAdapter here, nestedInnerAdapter is registered as an "extends" of nestedOuterAdapter
13 nestedOuterAdapter,
14 ],
15 }
16})