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?