Skip to content
New issue

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

[Question]小程序中的addProvider每次进入新页面都会重新触发 #2394

Open
yiescc opened this issue Oct 20, 2022 · 0 comments
Open

Comments

@yiescc
Copy link

yiescc commented Oct 20, 2022

背景

  • 我们有一些应用的初始化要处理,应用生命周期内只希望触发一次
  • 我们放在了addProvider里
  • 但是在小程序中每次切换新页面,都会重新触发一次

请问如何处理这种情况?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant