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
使用recoil无法正常使用: Illegal invocatio #10119
Comments
目前只有redux 和mobx 的支持 |
根据教程 / 其它状态管理工具,Recoil 是支持的。 |
是的 之前我是使用过的。现在这个3.3好像有点问题
|
同样的问题,目前去 window = global; 可以暂时解决。 版本:
|
我也遇到同样的问题 |
@loethen |
@Chen-jj 更新到3.3.12依然不行 |
3.3.14 下 TypeError: Illegal invocation Recoil 还是无法使用希望尽快解决啊 大佬 |
3.3.14 下 TypeError: Illegal invocation Recoil 还是无法使用希望尽快解决啊 大佬 |
@skyliwq 提供一下 demo? |
import {useEffect} from 'react' import { View } from '@tarojs/components' const tokenState = atom({ const Index = () => {
} |
|
我们看看 |
封装 window.setTimeout、window.clearTimeout,避免第三方库使用 window.setTimeout 调用时,Taro 封装的 window 对象和真正挂载 setTimeout 的 global 对象不一样时,报 Illegal invocation 的问题
封装 window.setTimeout、window.clearTimeout,避免第三方库使用 window.setTimeout 调用时,Taro 封装的 window 对象和真正挂载 setTimeout 的 global 对象不一样时,报 Illegal invocation 的问题
|
@skyliwq 上一个完整的 demo 看看 |
|
|
@skyliwq 你的 demo 里 Taro 相关依赖还是 3.3.14,升上去最新版就好了 |
3.5.2打包到字节小程序依然报错Illegal invocation,微信小程序正常,求解决 @Chen-jj |
相关平台
微信小程序
小程序基础库: 2.16.0
使用框架: React
复现步骤
配置recoil,启动后失败
期望结果
正常使用
实际结果
环境信息
The text was updated successfully, but these errors were encountered: