From 3e83185f4d644fa50a50144853c722907aea16a2 Mon Sep 17 00:00:00 2001 From: Saul Date: Fri, 22 Mar 2024 10:58:10 +0100 Subject: [PATCH] test: noop store --- packages/ngrx-rtk-query/noop-store/src/provide-noop-store-api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ngrx-rtk-query/noop-store/src/provide-noop-store-api.ts b/packages/ngrx-rtk-query/noop-store/src/provide-noop-store-api.ts index 29d2280..51199e1 100644 --- a/packages/ngrx-rtk-query/noop-store/src/provide-noop-store-api.ts +++ b/packages/ngrx-rtk-query/noop-store/src/provide-noop-store-api.ts @@ -41,6 +41,7 @@ const createNoopStoreApi = ( return (): AngularHooksModuleOptions => { const dispatch = (action: UnknownAction) => { + if (api.resetApiState.match(action)) return; store.dispatch(action, { reducerPath, reducer }); return action; };