You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(store): enable immutability checks by default (#2266)
Closes#2217
BREAKING CHANGE:
Immutability checks are enabled by default.
BEFORE:
Immutability checks are opt-in.
AFTER:
If state or action is mutated then there will be a run time exception thrown.
Copy file name to clipboardExpand all lines: modules/store/src/runtime_checks.ts
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,11 @@ export function createActiveRuntimeChecks(
15
15
runtimeChecks?: Partial<RuntimeChecks>
16
16
): RuntimeChecks{
17
17
if(isDevMode()){
18
-
if(runtimeChecks===undefined){
19
-
console.warn(
20
-
'@ngrx/store: runtime checks are currently opt-in but will be the default in the next major version with the possibility to opt-out, see https://ngrx.io/guide/migration/v8 for more information.'
0 commit comments