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
微信小程序
https://github.com/lf7817/taro-test 小程序基础库: 2.9.5 使用框架: React
const Test: FC = () => { useEffect(() => { console.log('mount') return () => { console.log('unmount') } }, []) return ( <View className='index'> <Text>Hello world!</Text> </View> ) }
页面挂载时打印mount 页面卸载时打印unmount
页面挂载时打印了mount 页面卸载时未打印unmount
Taro CLI 3.0.6 environment info: System: OS: Windows 10 Binaries: Node: 12.18.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
3.0.5版本正常
Sorry, something went wrong.
fix(runtime): 修复 react 组件卸载问题,fix #7206
0c2e3ba
3.0.6 版本,普通的 class 组件,unmount 事件也没触发
fix(runtime): 修复 react 组件卸载问题,fix NervJS#7206
2ba8beb
c2a3ee4
Successfully merging a pull request may close this issue.
相关平台
微信小程序
复现仓库
https://github.com/lf7817/taro-test
小程序基础库: 2.9.5
使用框架: React
复现步骤
期望结果
页面挂载时打印mount
页面卸载时打印unmount
实际结果
页面挂载时打印了mount
页面卸载时未打印unmount
环境信息
The text was updated successfully, but these errors were encountered: