-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(shared): remove the apply of delayRef to taro.createIntersectionO… #14570
fix(shared): remove the apply of delayRef to taro.createIntersectionO… #14570
Conversation
这个新的啥时候支持啊,我发现升级小版本后也不能用了,我现在只能wx.来用 |
想问问这个删除后,taro.createIntersectionObserver可以按照预期执行吗?之前是因为什么,我好看是打补丁还是更新版本呢 |
之前是因为 createIntersectionObserver() 方法的参数都丢失了,所以效果与预期不符,如果不升级版本可以直接用 wx. 来调用 |
@TheKonka 这里感觉不需要把对 |
如果之后升级呢?我现在这边是用wx.调用的,但是alipay还是得用Taro. |
大佬,这个方法我是没有想到,试了一下确实是可以的。 |
这里多次一举地在框架里对这两个 API 做延时是希望有时开发者不写也能正常使用,减少开发者特别是新手的心智负担。因为在不同小程序框架和不同环境下,常常会有一些反馈说需要添加延时才能执行, |
…bserver
#14563
这个 PR 做了什么? (简要描述所做更改)
删除 代码里对 createIntersectionObserver 方法的替换,因为createIntersectionObserver方法有定义参数
#13972
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: