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

M2-4997 (common task), M2-5076, M2-4991, M2-5257: add some new mixpanel events #607

Merged
merged 5 commits into from
Feb 15, 2024

Conversation

@anq83 anq83 force-pushed the M2-4997-track-applet-id branch 2 times, most recently from 8e24567 to 8449db1 Compare February 5, 2024 13:15
M2-5076: [Mobile] Mixpanel Tracking: Applet ID in event properties ;
@anq83 anq83 force-pushed the M2-4997-track-applet-id branch from 8449db1 to a390267 Compare February 6, 2024 08:34
@anq83 anq83 changed the title WIP: M2-4997: Mixpanel Tracking: Applet ID in event properties M2-4997: Mixpanel Tracking: Applet ID in event properties Feb 6, 2024
appletId={props.route.params.appletId}
/>
)}
{isFocused && <ActivityGroups flex={1} px={14} appletId={appletId} />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure the groups don't disappear right away during the screen transition animation (e.g. open InProgressActivityScreen)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They will and it was before

Copy link
Contributor

@BamMironov BamMironov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider using React Navigation's useFocusEffect

appletId={props.route.params.appletId}
/>
)}
{isFocused && <ActivityGroups flex={1} px={14} appletId={appletId} />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (isFocused) {
callbackRef.current();
}
}, [isFocused]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use useFocusEffect instead as it serves exactly the purpose we want to utilize. Here is a quick comparison:
https://www.dhiwise.com/post/how-to-use-the-usefocuseffect-hook-in-react-effectively#comparing-usefocuseffect-and-useisfocused-in-react-native

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@anq83 anq83 changed the title M2-4997: Mixpanel Tracking: Applet ID in event properties M2-4997, M2-5076, M2-4991: add some new mixpanel events Feb 9, 2024
@anq83 anq83 changed the title M2-4997, M2-5076, M2-4991: add some new mixpanel events M2-4997 (common task), M2-5076, M2-4991: add some new mixpanel events Feb 9, 2024
@anq83 anq83 changed the title M2-4997 (common task), M2-5076, M2-4991: add some new mixpanel events M2-4997 (common task), M2-5076, M2-4991, M2-5257: add some new mixpanel events Feb 14, 2024
@anq83 anq83 merged commit 1a365d2 into dev Feb 15, 2024
1 check passed
@anq83 anq83 deleted the M2-4997-track-applet-id branch February 15, 2024 14:26
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.

3 participants