-
I don't see a reason why we shouldn't be allowed to reuse the same layout with different parents...
Gives error |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jan 26, 2025
Replies: 0 comments 2 replies
-
You can do it by assigning a custom route id The router generates a route id based on the file path, since the file is the same you need to customize it to use it multiple times. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
skrichten
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
You can do it by assigning a custom route id
layout("routes/ScreenShader.tsx", { id: "custom" }, [])
.The router generates a route id based on the file path, since the file is the same you need to customize it to use it multiple times.