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

Chore: Refactor variable name for Redux safety checks #6113

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/assets/javascripts/components/util/create_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const getStore = () => {
};
}

// Determine if mutation checks should be enabled
const enableMutationChecks = false;
// Determine if Redux Toolkit's safety checks should be enabled
const enableReduxSafetyChecks = false;

const store = configureStore({
reducer,
Expand All @@ -39,9 +39,9 @@ export const getStore = () => {
getDefaultMiddleware({
// Temporarily disable mutation checks feature to facilitate Redux Toolkit migration.
// TODO: Gradually resolve state mutations and re-enable these checks in the future.
// Enable mutation checks when resolving or detecting these issues by setting enableMutationChecks to true.
immutableCheck: enableMutationChecks,
serializableCheck: enableMutationChecks,
// Enable mutation checks when resolving or detecting these issues by setting enableReduxSafetyChecks to true.
immutableCheck: enableReduxSafetyChecks,
serializableCheck: enableReduxSafetyChecks,
}),
});

Expand Down
Loading