You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<View className='root'>
<SafeArea position='top' nativeSafeTop className='top' />
<Navbar title='测试' safeArea='top' nativeSafeTop fixed>
<Navbar.NavLeft onClick={this.onBack}>返回</Navbar.NavLeft>
</Navbar>
<SafeArea position='top' nativeSafeTop />
<View className='container'>
// ... do some state changes.
</View>
</View>
在下面的container中进行state的更新,即可触发这个警告 wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
问题出在哪个包
@taroify/core
问题出在哪个平台/设备/浏览器
微信小程序
平台/设备/浏览器
No response
你正在使用的 Taroify 版本是多少
3.6.35
描述一下您遇到的问题以及重现步骤
在下面的container中进行state的更新,即可触发这个警告
wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
猜测可能每次都调用了getSystemInfoSync这个方法。首先觉得可能这个方法会比较的耗时,能否优化。其次是否能遵循deprecated的建议使用更新的api https://github.com/NervJS/taro/blob/v3.6.35/packages/taro-h5/src/api/base/system.ts
如果可能的话,请包含一个代码框的链接与复制的问题
No response
你知道如何解决这个问题吗
None
您是否愿意参与修复这个问题,并创建一个 PR
None
修复这个问题的解决方案
No response
The text was updated successfully, but these errors were encountered: