This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
父子组件均使用usePageEvent('onShow'), 在子组件onshow中改变组件状态,返回该页面时,父组件钩子不会执行,子组件钩子重复执行 #1564
Labels
bug
Something isn't working
bug 描述
父子组件均使用usePageEvent('onShow'), 在子组件onshow中改变组件状态,离开当前页面再返回该页面时,父组件onShow钩子不会执行,子组件onShow钩子会重复执行。
如果去掉 setCount(count + 1),则正常执行。
复现步骤
离开页面再返回页面
期望结果
父组件钩子执行,子组件钩子均执行,且执行一次
复现代码
版本信息:
其他信息
The text was updated successfully, but these errors were encountered: