Skip to content
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

[New Feature]响应式 支持对复杂对象的支持 #26

Open
SoonIter opened this issue Jul 25, 2022 · 2 comments
Open

[New Feature]响应式 支持对复杂对象的支持 #26

SoonIter opened this issue Jul 25, 2022 · 2 comments

Comments

@SoonIter
Copy link

Vue对复杂对象的处理是,重新赋值触发响应。类似Date的复杂对象,也可以做到这个地步?

@SoonIter
Copy link
Author

持久化可以不存JSON格式(?

@geekact
Copy link
Member

geekact commented Jul 26, 2022

最好还是延续React的设计思路,做成mvvm容易导致更新逻辑散乱。 #21

底层毕竟是基于redux,不纯的对象(函数/类/dom)都会导致状态更新异常,以及JSON字符串持久化也变得不现实。现有的做法已经满足大部分人的需求了

另外复杂的对象系列化完再反系列化,如果没有schema支持,那么就无法完全恢复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants