Made a Metadata Manager with Tanstack Router #3167
jorgedanisc
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I needed a solution that would let me customize dynamically Metadata on my Vite React SPA with Tanstack Router. So I developed this:
Actual Code
Basic set up
How to use?
There are two ways of using this, by specifying
staticData
on the tanstack route or by using thesetMetadata
from the Context.or
Hope that this would be helpful to anyone, and would appreciate any suggestion on improvements to this component, would love to ear feedback!
Beta Was this translation helpful? Give feedback.
All reactions