File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ export interface RouterOptions<
430
430
*/
431
431
disableGlobalCatchBoundary ?: boolean
432
432
433
- serializationAdapters ?: Array < AnySerializationAdapter >
433
+ serializationAdapters ?: ReadonlyArray < AnySerializationAdapter >
434
434
}
435
435
436
436
export interface RouterState <
Original file line number Diff line number Diff line change @@ -135,9 +135,10 @@ export function createStartHandler<TRouter extends AnyRouter>({
135
135
isShell = request . headers . get ( HEADERS . TSS_SHELL ) === 'true'
136
136
}
137
137
// insert start specific default serialization adapters
138
- const serializationAdapters = router . options . serializationAdapters ?? [ ]
139
- // TODO: client side needs to install that plugin in hydrateStart!
140
- serializationAdapters . push ( ServerFunctionSerializationAdapter )
138
+ const serializationAdapters = (
139
+ router . options . serializationAdapters ?? [ ]
140
+ ) . concat ( ServerFunctionSerializationAdapter )
141
+
141
142
router . update ( {
142
143
history,
143
144
isShell,
You can’t perform that action at this time.
0 commit comments