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> {
25
25
}
26
26
27
27
serializationAdapters . push ( ServerFunctionSerializationAdapter )
28
+ if ( router . options . serializationAdapters ) {
29
+ serializationAdapters . push ( ...router . options . serializationAdapters )
30
+ }
28
31
29
32
router . update ( {
30
33
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>(
145
145
origin : router . options . origin ?? origin ,
146
146
...{
147
147
defaultSsr : startOptions . defaultSsr ,
148
- serializationAdapters : startOptions . serializationAdapters ,
148
+ serializationAdapters : [
149
+ ...( startOptions . serializationAdapters || [ ] ) ,
150
+ ...( router . options . serializationAdapters || [ ] ) ,
151
+ ] ,
149
152
} ,
150
153
basepath : ROUTER_BASEPATH ,
151
154
} )
You can’t perform that action at this time.
0 commit comments