-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Frozen array in reactive breaks list rendering #867
Comments
I did some poking around and will add that rendering only breaks when the frozen array contains objects. If it contains primitives it (from what I can tell) works as expected. It seems it's related to the proxy's that wrap objects. The error is:
The following is a low-level code reproduction: const list = ref(Object.freeze([{id: 1}]))
renderList(list.value, () => null) @yyx990803 This seems like it would be a reasonable fix (at the end of const descriptor = Reflect.getOwnPropertyDescriptor(target, key);
if (descriptor && !descriptor.configurable && !descriptor.writable) {
return res
} |
Version
3.0.0-alpha.9
Reproduction link
https://codesandbox.io/s/hopeful-newton-su9mz
Steps to reproduce
reactive
What is expected?
Frozen arrays should be supported in lists
What is actually happening?
Rendering breaks
The text was updated successfully, but these errors were encountered: