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
Copy file name to clipboardExpand all lines: src/utils/messages.ts
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,10 @@ const messages = {
25
25
"m024" : "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.",
26
26
"m025" : "whyRun can only be used on reactions and computed values",
27
27
"m026" : "`action` can only be invoked on functions",
28
-
"m027" : "Computed values are not allowed to not cause side effects by changing observables that are already being observed. Tried to change: ",
29
28
"m028" : "It is not allowed to set `useStrict` when a derivation is running",
30
29
"m029" : "INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row",
31
-
"m030" : "It is not allowed to create or change state outside an `action` when MobX is in strict mode. Wrap the current method in `action` if this state change is intended. Tried to change: ",
32
-
"m031" : "It is not allowed to change the state when a computed value or transformer is being evaluated. Use 'autorun' to create reactive functions with side-effects. Tried to change: ",
30
+
"m030" : "Since strict-mode is enabled, changing observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ",
31
+
"m031" : "Computed values are not allowed to not cause side effects by changing observables that are already being observed. Tried to modify: ",
33
32
"m032" : "* This computation is suspended (not in use by any reaction) and won't run automatically.\n Didn't expect this computation to be suspended at this point?\n 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).",
34
33
"m033" : "`observe` doesn't support the fire immediately property for observable maps.",
35
34
"m034" : "`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead",
0 commit comments