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

[Feature Request] 请求umi导出valtio的ref方法 #11635

Closed
hexf00 opened this issue Sep 11, 2023 · 2 comments
Closed

[Feature Request] 请求umi导出valtio的ref方法 #11635

hexf00 opened this issue Sep 11, 2023 · 2 comments

Comments

@hexf00
Copy link

hexf00 commented Sep 11, 2023

Background

https://umijs.org/docs/max/valtio

Umi 在 4.0.23 中加入了 Valtio 插件作为一种内置数据流方案,但是未提供 ref api,部分对象(如DOM对象)被 Valtio 代理会报错,ref api 包裹后的对象不会走 proxy,缺失该机制要求对编码实现还是有比较大的影响,另外,Valtio 不支持从2个库各使用一部分api,希望导出这种基础和必要的能力。

Proposal

请求添加 valtio 的 ref 作为导出项,请求作出评估。或者有什么方法可以访问到 ref api。

Additional context

@fz6m
Copy link
Contributor

fz6m commented Sep 12, 2023

欢迎 PR 添加所需的导出成员并升级 valtio 版本,代码在 https://github.com/umijs/umi/tree/master/libs/valtio

@sorrycc
Copy link
Member

sorrycc commented Sep 21, 2023

Fixed.

@sorrycc sorrycc closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants