Goals First: Prevent calypso_signup_start
from firing again when user logs in
#98223
+4
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #
Proposed Changes
The
is_logged_out
prop changes to true when the user logs in, this causes the event to re-trigger as theuseMemo
dependency is changed. This PR prevents that by using a reference in the dependency list instead of the actual value ofis_logged_out
since we are only interested in what the value was when the event was first triggered.is_logged_out
instead of the actual value.Why are these changes being made?
Testing Instructions
/setup/onboarding
calypso_signup_start
event is firedcalypso_signup_start
event is not fired againPre-merge Checklist