How can i get the meta data of the current page. (React) #481
Unanswered
AlejandroAmayaIzquierdo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Vite
I set up some routes without authorization for any user to access
App.tsx
findRoute Function
I made up a function fo find it using the react-pages array and the location.pathname of react router. The function does the job with some basic routes like '/users' , '/login'. But do not work in a route with a parameter like '/user/:id'.
How should I approach this?
Is isn't an official way to get the object with the plugin or with react route?
Beta Was this translation helpful? Give feedback.
All reactions