File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
start-client-core/src/client Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ export async function hydrateStart(): Promise<AnyRouter> {
2525 }
2626
2727 serializationAdapters . push ( ServerFunctionSerializationAdapter )
28+ if ( router . options . serializationAdapters ) {
29+ serializationAdapters . push ( ...router . options . serializationAdapters )
30+ }
2831
2932 router . update ( {
3033 basepath : process . env . TSS_ROUTER_BASEPATH ,
Original file line number Diff line number Diff line change @@ -145,7 +145,10 @@ export function createStartHandler<TRegister = Register>(
145145 origin : router . options . origin ?? origin ,
146146 ...{
147147 defaultSsr : startOptions . defaultSsr ,
148- serializationAdapters : startOptions . serializationAdapters ,
148+ serializationAdapters : [
149+ ...( startOptions . serializationAdapters || [ ] ) ,
150+ ...( router . options . serializationAdapters || [ ] ) ,
151+ ] ,
149152 } ,
150153 basepath : ROUTER_BASEPATH ,
151154 } )
You can’t perform that action at this time.
0 commit comments