State changes add unexpected data to object #1913
Unanswered
anderslutzhoft
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
I have a github repo I can provide on request
Steps to reproduce the bug
I define a store with the following state:
however the state when read in dev and production is returned:
`
Somehow the type key is set to installment on all objects.
Even if I try to update the state during runtime, nothing changes.
If I define the state as
offerColumns = []
this will be reflected at runtime with an empty object, but as soon as I try to update the state with any data in runtime, likeofferColumns = {"foo": "fa"}
, it returns[ { "foo": "fa", "type": "installment" } ]
I'm losing my mind here...
Expected behavior
I expect the state to reflect what I set it to.
Actual behavior
On some states I get unexpected additions to my objects.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions