We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
解决函数式组件无法使用componentWillPreload的功能
usePreload(()=>{ return thenable })
The text was updated successfully, but these errors were encountered:
哪个版本?
Sorry, something went wrong.
哪个版本都没有componentWillPreload对应的hooks吧
Taro 3 不再提供 componentWillPreload、$preload API,改为:
调用:
Taro.preload()
获取
console.log(getCurrentInstance().preloadData)
参考文档
No branches or pull requests
这个特性解决了什么问题?
解决函数式组件无法使用componentWillPreload的功能
这个 API 长什么样?
usePreload(()=>{
return thenable
})
The text was updated successfully, but these errors were encountered: