dcloudio / dcloudio/uni-app

h5首次进入keepalive缓存的页面没有触发onActivated钩子函数

Open
#5,979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
首次进入keepalive缓存的页面没有触发onActivated钩子函数,只触发了onMounted生命周期,第二次进入该页面才会触发onMounted和onActivated

**预期结果**
首次进入onMounted和onActivated都触发

**系统信息:**
H5平台

**补充信息**
[可选]
是因为动态添加的原因,首次触发未捕获到吗

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.