Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templating: Fixes query variable with ${__searchFilter} value selection not causing refresh & url update #25770

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Jun 23, 2020

Fixes #25671

@torkelo torkelo requested review from a team, mckn and tskarhed and removed request for a team June 23, 2020 14:16
Comment on lines +53 to 63
const defaultMiddleware = getDefaultMiddleware<State>({
thunk: false,
serializableCheck: false,
immutableCheck: false,
} as any);

const givenRootReducer = (rootReducer: Reducer<State>): ReduxTesterWhen<State> => {
store = configureStore<State>({
reducer: rootReducer,
middleware: [...getDefaultMiddleware<State>(), logActionsMiddleWare, thunk] as [ThunkMiddleware<State>],
middleware: [...defaultMiddleware, logActionsMiddleWare, thunk] as [ThunkMiddleware<State>],
preloadedState,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the flooding of console log warnings about unserializable state in redux actions

Copy link
Contributor

@mckn mckn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work as expected! Great work!

@torkelo torkelo merged commit b7d26b1 into master Jun 24, 2020
@torkelo torkelo deleted the fix-search-filter-issue branch June 24, 2020 06:36
torkelo added a commit that referenced this pull request Jun 24, 2020
dprokop pushed a commit that referenced this pull request Jun 25, 2020
@dprokop dprokop mentioned this pull request Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Templating: When selecting variable using __searchFilter does not trigger refresh / url update
3 participants