Skip to content

Commit d80065d

Browse files
committed
disable batching for test store
1 parent b3df5d5 commit d80065d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/toolkit/src/query/tests/helpers.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ export function setupApiStore<
218218
.concat(...(middleware?.concat ?? []))
219219
.prepend(...(middleware?.prepend ?? [])) as typeof tempMiddleware
220220
},
221+
enhancers: (gde) =>
222+
gde({
223+
autoBatch: false,
224+
}),
221225
})
222226

223227
type StoreType = EnhancedStore<

0 commit comments

Comments
 (0)