reload page when current tab changed #1220
Replies: 8 comments
-
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to figure out a solution to this as well. Wanting to fetch data only when the tab comes into focus. |
Beta Was this translation helpful? Give feedback.
-
@mtalhagaoglu Just pass |
Beta Was this translation helpful? Give feedback.
-
hi. thanks for you comment. i tried and it works but it works everytime it switches tab. for i example i have a,b and c tabs. whenever i navigate between tabs, 3 useEffects functions triggers at the same time. |
Beta Was this translation helpful? Give feedback.
-
Facing same issue. Want to trigger useEffect hook only for the currently focused tab. Any leads? |
Beta Was this translation helpful? Give feedback.
-
any solution? |
Beta Was this translation helpful? Give feedback.
-
i ended with creating my own tab system (basicly switch case) . its easy actually you can do it also. i won't close the issue because it still exist in this lib |
Beta Was this translation helpful? Give feedback.
-
How do we know when a tab has changed? In the Tab component? |
Beta Was this translation helpful? Give feedback.
-
Expected behaviour
I want to run a function when page focued and for that i am using navigation listener "focus" but with this tab-view listener these listeners doesnt trigger. how can i trigger a function or trigger listener when it is focused?
What have you tried
I tried lazy param but its only trigger tab first time. second or more renders doesnt work as it shold be.
Your Environment
Beta Was this translation helpful? Give feedback.
All reactions