Replies: 1 comment
|
Ahh, it was my fault. I called the method from button like this accidentally: |
0 replies
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.
I saw in a tutorial, that createMutable objects can have its own logic. That would be good in simpler scenarios, I can use those objects as a global state management solution. Unfortunately, it works very hectic. For example there is a cart object, I can push products into the products, but I cant reset/clear the array, because it is undefined. I experienced some undefined issue also, when I want to use getters inside another inner function. Am I doing wrong or this is a bug in the latest versions?
My cart createMutable look like this:
All reactions