Replies: 1 comment
-
I'd recommend hoisting your state in the list component, e.g. via To clear the state on tab navigation you can use |
Beta Was this translation helpful? Give feedback.
-
I'd recommend hoisting your state in the list component, e.g. via To clear the state on tab navigation you can use |
Beta Was this translation helpful? Give feedback.
-
I currently have a Screen inside a Bottom Navigation. In this screen, there is a List of Data along with a Search feature. Here’s the behavior I want to achieve:
This is my current implementation:
My Question
Is this the correct approach? Or is there a better way to preserve the search query when returning from the detail screen, but clear it when switching to a different screen within the Bottom Navigation?
Beta Was this translation helpful? Give feedback.
All reactions