You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global handle function for Remix/React Router v7 #18
Currently, sitemap generation for Remix / React Router v7 only supports handle functions defined on individual routes.
This works well when route-specific logic is needed, but there’s no way to apply shared logic across all routes.
A common example is generating alternate language links: every route may need the same set of alternates, yet today this logic has to be duplicated in each route’s handle.
One possible approach to support this use case would be to allow using the handle from root.tsx, which would run if the individual route doesn't have sitemap handle to be processed.
Let me know if this approach makes sense for the project.
I've already opened a PR for this, is shows best the approach taken,
Activity