[effector-vue] DeepReadonlyRef with non-primitive values in useUnit breaks usage · Issue #1130 · effector/effector · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use useUnit with array of something / object, the result have DeepReadonlyRef, and that make problematic or even impossible to use data from it for something like props, due to ts error of incompatible types.
Seems like readonly should be achieved by simpler approach, not deep read only types
I agree.
Readonly native type is enough.
Control over nested mutation should be on the user's side (I guess when working with vue + effector users are aware of this).
When we use useUnit with array of something / object, the result have DeepReadonlyRef, and that make problematic or even impossible to use data from it for something like props, due to ts error of incompatible types.
Demo: Link
Missing/Incorrect APIs
https://github.com/effector/effector/blob/master/packages/effector-vue/composition.d.ts#L83
https://github.com/effector/effector/blob/master/packages/effector-vue/composition.d.ts#L101
The text was updated successfully, but these errors were encountered: