Object property in store is reactive when adding but not when removing #2150
Unanswered
pixelprogrammer
asked this question in
Q&A
Replies: 1 comment
-
So far the solution to this has been to use an array to store records that you add/remove instead of a key/value object pair. But, I just want to know if using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I create a new store I can add properties to a nested object and the app is reactive to those changes. Things work as expected so far. However, when I start to delete or remove properties, even clearing it by setting it to an empty object, the store does not update nor is it reactive.
Is this expected behaviour or is this a bug?
I have a simple example on a fresh Solidjs project here:
Add rows by clicking the button. By clicking on the rows it should be removing them.
App.tsx
app-form.tsx
Beta Was this translation helpful? Give feedback.
All reactions