关于增强 @formily/reactive-vue 桥接能力的讨论 #2663
MisicDemone
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
@MisicDemone 我觉得这个挺好的,是不是考虑合并进去? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当前 @formily/reactive-vue 仅提供了 @formily/reactive 到 vue 的渲染桥接(observer),即自动收集 render 函数中的依赖,再响应依赖变更触发重新渲染。但在使用 composition-api 时,仅提供 observer 包装函数有时是不够的。在接入一下其他使用formily-reactive能力定义的模型(如designable)时,在封装hooks时可能会写大量桥接代码。
如果能在底层实现这些桥接逻辑,使用者只需要按平常使用 composition-api 的习惯去开发,则会省心很多。这里贴一个自己的实现,大家可以看下是否需要集成进 @formily/reactive-vue ,以及试用或者帮忙捉捉虫?
Beta Was this translation helpful? Give feedback.
All reactions