-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I mutate an object inside of an array? #545
Comments
This works, but the above indexing doesn't:
|
|
Aha - I wonder if it's related to this: #173 My todo was created like
But If i change to this, things start working:
|
Sounds like you found it :) |
Yes, but unsure why a static factory method wouldn't work!
…On Mon, 17 Jun 2024, 18:34 Javier Gonzalez, ***@***.***> wrote:
Sounds like you found it :)
—
Reply to this email directly, view it on GitHub
<#545 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJWOW3EGF6KAM4SOISRURLZH4MYRAVCNFSM6AAAAABJOMQEFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTHE3DCNBZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It works if you use anything other than babel to transpile the legacy decorators (e.g. typescript compiler) and potentially it might work even with babel if you use the new decorators. |
Hrmm, I'm not consciously using Babel - I've never even heard of it. Can
you point me at something to read up?
…On Mon, 17 Jun 2024, 19:14 Javier Gonzalez, ***@***.***> wrote:
It works if you use anything other than babel to transpile the legacy
decorators (e.g. typescript compiler) and potentially it might work even
with babel if you use the new decorators.
—
Reply to this email directly, view it on GitHub
<#545 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJWOW3FSNG6CZUUNGHSVDDZH4RRJAVCNFSM6AAAAABJOMQEFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGAZTCOJXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is mutating an item inside of an array, like this
todoStore.todos[index].setDone(true)
supported?I'm finding that this isn't consistently working, especially after first adding a new Todo to the model
The text was updated successfully, but these errors were encountered: