-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
8e24567
to
8449db1
Compare
8449db1
to
a390267
Compare
appletId={props.route.params.appletId} | ||
/> | ||
)} | ||
{isFocused && <ActivityGroups flex={1} px={14} appletId={appletId} />} |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this 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} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/shared/lib/hooks/useOnFocus.ts
Outdated
if (isFocused) { | ||
callbackRef.current(); | ||
} | ||
}, [isFocused]); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
https://mindlogger.atlassian.net/browse/M2-4991
https://mindlogger.atlassian.net/browse/M2-5076
https://mindlogger.atlassian.net/browse/M2-4997
https://mindlogger.atlassian.net/browse/M2-5257