Date.setDate() mutates store data #691
Unanswered
malvin-rgba
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In general, you're the one responsible for not mutate your data. Akita freezes the state in the dev mode, but that's all. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm submitting a...
Current behavior
Javascript
Date.setDate()
mutates storeExpected behavior
It should not be able to mutate readonly store data.
Minimal reproduction of the problem with instructions
Take a look at
app.component.ts
andapp.state.ts
:https://stackblitz.com/edit/angular-ivy-ge1q4z?file=src%2Fapp%2Fapp.component.ts
Questions
Beta Was this translation helpful? Give feedback.
All reactions