invalidate tags in addCase() function

19 Views Asked by At

UI language is stored in a redux store. I need to invalidate tags as a result of UI language being changed. So I need to dispatch an invalidateTags action from addCase function.

extraReducers: builder => {
        builder
          .addCase(settingsActions.setContentLanguages, <dispatch backendApi.util.invalidateTags(['Pages'])>

But there is no dispatch() there. What should I do?

0

There are 0 best solutions below