Lets say I have 3 routes nested inside each other:
/users - shows UserList
- /:id - shows UserDetail
- /address - shows the 'Address' tab of a 'user' object
In this case, the /address
route needs the user
object that /:id
route has.
It doesnt need to fetch it from the server since the /:id
route already fetched it. It just needs the pointer to that object.
How do i pass the object obtained by /:id
to /address
route?
Aucun commentaire:
Enregistrer un commentaire