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/panhezeng/taro-vue-template 小程序基础库: 2.21.0 使用框架: Vue 3
onShow() { console.log("index-page onShow"); },
npm run build:weapp -- --watch
第一次进入页面,应该只出现一次 "index-page onShow" 输出
会出现两次 "index-page onShow"
Taro CLI 3.3.15 environment info: System: OS: macOS 12.0.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn npm: 8.1.4 - ~/.nvm/versions/node/v16.13.0/bin/npm npmPackages: @tarojs/components: ^3.3.15 => 3.3.15 @tarojs/mini-runner: ^3.3.15 => 3.3.15 @tarojs/runtime: ^3.3.15 => 3.3.15 @tarojs/taro: ^3.3.15 => 3.3.15 @tarojs/webpack-runner: ^3.3.15 => 3.3.15 babel-preset-taro: ^3.3.15 => 3.3.15 eslint-config-taro: ^3.3.15 => 3.3.15
The text was updated successfully, but these errors were encountered:
taro 不支持 webpack 5 ?
Sorry, something went wrong.
fix(runtime): 修复 Vue3 首次进入页面会触发两次 onShow 的问题,fix #10728
beb53a8
280b7b8
Successfully merging a pull request may close this issue.
相关平台
微信小程序
复现仓库
https://github.com/panhezeng/taro-vue-template
小程序基础库: 2.21.0
使用框架: Vue 3
复现步骤
onShow() {
console.log("index-page onShow");
},
npm run build:weapp -- --watch
期望结果
第一次进入页面,应该只出现一次 "index-page onShow" 输出
实际结果
会出现两次 "index-page onShow"
环境信息
The text was updated successfully, but these errors were encountered: