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
it seems to work the same. The only difference seems to be the behaviour with relative routes in the parent (depending on future.v7_relativeSplatPath future flag.
Now, if the parent also matches without the splat (when it has children, it seems - a behaviour that perhaps should be clarified), why would we include it? Is there some benefit ? Which is the recommended way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Consider for example
Assuming
Home
includes anOutlet
, all works as expected.The url
/home/child1
results in<Home><Child1 /></Home>
and so on.But if I omit the splat in the parent:
it seems to work the same. The only difference seems to be the behaviour with relative routes in the parent (depending on future.v7_relativeSplatPath future flag.
Now, if the parent also matches without the splat (when it has children, it seems - a behaviour that perhaps should be clarified), why would we include it? Is there some benefit ? Which is the recommended way?
Beta Was this translation helpful? Give feedback.
All reactions