Notifications scroll jumps when navigating back
Summary
When navigating back to the notifications screen the UI freezes for a moment and the scroll jumps because the notifications are refreshed.
Steps to reproduce
- Open the notifications screen
- Tap on a notification to open a post screen
- press back
Platform information
both
What is the current bug behavior?
- Refresh the notifications
What is the expected correct behavior?
- It should not refresh the notifications when navigating back
Relevant logs and/or screenshots
Possible fixes
Remove the useFocusEffect and change the refresh logic of the screen. Maybe just refresh it when the tab is pressed
Edited by Manish