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
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
-
Sometimes it is necessary to use a rendered outlet element that may be null in a matched route.
For example:
When the index route is matched, useOutlet() returns the element (
<OutletProvider />
, I guess). But I need to know if the outlet element isnull
.I came up with a dirty solution, but shouldn't there be a way to use a clean one?
*The solution is to check outlet and it's child element for children.
Beta Was this translation helpful? Give feedback.
All reactions