File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
start-client-core/src/client Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ export async function hydrateStart(): Promise<AnyRouter> {
2525 }
2626
2727 serializationAdapters . push ( ServerFunctionSerializationAdapter )
28- router . options . serializationAdapters = serializationAdapters
28+ router . options . serializationAdapters = [
29+ ...serializationAdapters ,
30+ ...( router . options ?. serializationAdapters || [ ] ) ,
31+ ]
2932
3033 if ( ! router . state . matches . length ) {
3134 await hydrate ( router )
Original file line number Diff line number Diff line change @@ -168,7 +168,10 @@ export function createStartHandler<TRegister = Register>(
168168 origin,
169169 ...{
170170 defaultSsr : startOptions . defaultSsr ,
171- serializationAdapters : startOptions . serializationAdapters ,
171+ serializationAdapters : [
172+ ...( startOptions . serializationAdapters || [ ] ) ,
173+ ...( router ?. options ?. serializationAdapters || [ ] ) ,
174+ ] ,
172175 } ,
173176 } )
174177 return router
You can’t perform that action at this time.
0 commit comments