diff options
Diffstat (limited to 'sdnr/wt/odlux/framework/src/store')
-rw-r--r-- | sdnr/wt/odlux/framework/src/store/applicationStore.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdnr/wt/odlux/framework/src/store/applicationStore.ts b/sdnr/wt/odlux/framework/src/store/applicationStore.ts index 287eba31c..a4545eff9 100644 --- a/sdnr/wt/odlux/framework/src/store/applicationStore.ts +++ b/sdnr/wt/odlux/framework/src/store/applicationStore.ts @@ -32,6 +32,7 @@ import apiMiddleware from '../middleware/api'; import thunkMiddleware from '../middleware/thunk'; import loggerMiddleware from '../middleware/logger'; import routerMiddleware from '../middleware/navigation'; +import { updatePolicies } from '../middleware/policies'; export type MiddlewareApi = MiddlewareArg<IApplicationStoreState>; @@ -65,7 +66,7 @@ export const applicationStoreCreator = (): ApplicationStore => { return acc; }, { framework: frameworkHandlers } as any); - const applicationStore = new ApplicationStore(combineActionHandler(actionHandlers), chainMiddleware(loggerMiddleware, thunkMiddleware, routerMiddleware, apiMiddleware, ...middlewares)); + const applicationStore = new ApplicationStore(combineActionHandler(actionHandlers), chainMiddleware(loggerMiddleware, thunkMiddleware, routerMiddleware, apiMiddleware, updatePolicies, ...middlewares)); setApplicationStore(applicationStore); return applicationStore; } |