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

✨ add runAfterFirstMounted effect hook #96

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

kuitos
Copy link
Member

@kuitos kuitos commented Sep 27, 2019

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

add runAfterFirstMounted effect hook, usually used for add tracking code.

import { runAfterFirstMounted } from 'qiankun';

recordStart();
runAfterFirstMounted(() => recordEnd());

This change is Reviewable

@kuitos kuitos requested a review from howel52 September 27, 2019 07:12
@howel52
Copy link
Collaborator

howel52 commented Sep 27, 2019

为何 startGoogleAnalysis 要放在 first app mount 后?

@howel52 howel52 merged commit 39a3e8a into master Sep 27, 2019
@howel52 howel52 deleted the feat/runAfterFirstMounted branch September 27, 2019 07:48
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

Successfully merging this pull request may close these issues.

2 participants