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
Adding an array of strings to a store causes an "Invariant failed" error and stops loading the application when Wiretap is used.
Commenting out the someArray declaration avoids the error
class TodoList {
@observable todos = [];
// comment this line to avoid the error
@observable someArray = ["string 1", "string 2"];
@computed
get unfinishedTodoCount() {
return this.todos.filter(todo => !todo.finished).length;
}
}
The text was updated successfully, but these errors were encountered:
Working example:
https://codesandbox.io/s/7j2147k0lj
Adding an array of strings to a store causes an "Invariant failed" error and stops loading the application when Wiretap is used.
Commenting out the someArray declaration avoids the error
The text was updated successfully, but these errors were encountered: