-
I am studying the LoadThenNavigate example and even if I can follow what happens after Does tapping on the row cause the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That case study demonstrates how to execute some logic before causing a drill-down navigation. Like if you wanted to perform an API request and then with the result of that request decide whether you do the drill-down or show an error message. So when you tap the nav link, a Does that help? |
Beta Was this translation helpful? Give feedback.
That case study demonstrates how to execute some logic before causing a drill-down navigation. Like if you wanted to perform an API request and then with the result of that request decide whether you do the drill-down or show an error message.
So when you tap the nav link, a
setNavigation(true)
action is sent, but we don't actually update state to haveisNavigationActive=true
. Instead, we fire off an effect, and when the effect finishes we then setisNavigationActive=true
which then causes the drill-down to happen.Does that help?