Skip to content

Sharing access token in nested routes #87

Answered by danestves
pbrissaud asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pbrissaud this can be achieved using useMatches from Remix https://remix.run/docs/en/v1/hooks/use-matches, this hooks is an array of data of all routes, and there you can access to the data from the root 🙌

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pbrissaud
Comment options

@danestves
Comment options

Answer selected by pbrissaud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants