Is going to a second route possible when waiting for data #253
-
Hello all, I'm trying to do some research on how to navigate and do some deeplinking in the app. If you take a look at the exmaple https://gorouter.dev/async-data, I would want it to go to the person page without clicking. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
sure. that's pretty much example what the async data example shows. |
Beta Was this translation helpful? Give feedback.
-
sure. whenever you have the data, you can do this: |
Beta Was this translation helpful? Give feedback.
-
Would the person page then wait for the family page to finish loading? In my own app I grab the object from a provider on the 'family' page, so that needs to be loaded. |
Beta Was this translation helpful? Give feedback.
-
You can have multiple pages pulling data asynchronously. However, if I were you, I'd use the repository pattern and caching so that only the first fetch actually results in a round-trip over the network. |
Beta Was this translation helpful? Give feedback.
You can have multiple pages pulling data asynchronously. However, if I were you, I'd use the repository pattern and caching so that only the first fetch actually results in a round-trip over the network.