-
-
Notifications
You must be signed in to change notification settings - Fork 927
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
reconcile
fails to replace nested array with object
#2017
Comments
I have an example here:
We are doing something similar in reconcile, so this bug happens |
Hmm.. ok. I need to think about this one a moment because this one is innately trickier. I think you are right that reconcile should update. What comes to mind is that like: setStore("value", {0: something }); Shouldn't turn it into an object if value was an array. But this will: setStore({value: {0: something }}); But yeah |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Basically the reverse of this issue. Using reconcile to replace a nested value that is an array with an object still leaves it as an array.
Your Example Website or App
https://playground.solidjs.com/anonymous/d43decad-3911-4beb-99e0-6a166b6655c6
Steps to Reproduce the Bug or Issue
Expected behavior
Expect the array to be replaced with an object, works without reconcile.
Screenshots or Videos
No response
Platform
Additional context
I don't think the playground version of solid has been updated to use the latest version so obj -> array bug exists there, but this bug exists both on older and latest (1.8.8) version.
The text was updated successfully, but these errors were encountered: