We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subscriptionsUpdated
1 parent ef8480b commit a9057c6Copy full SHA for a9057c6
packages/toolkit/src/query/core/buildSlice.ts
@@ -433,8 +433,11 @@ export function buildSlice({
433
name: `${reducerPath}/internalSubscriptions`,
434
initialState: initialState as SubscriptionState,
435
reducers: {
436
- subscriptionsUpdated(state, action: PayloadAction<Patch[]>) {
437
- return applyPatches(state, action.payload)
+ subscriptionsUpdated: {
+ reducer(state, action: PayloadAction<Patch[]>) {
438
+ return applyPatches(state, action.payload)
439
+ },
440
+ prepare: prepareAutoBatched<Patch[]>(),
441
},
442
443
})
0 commit comments