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
This is a follow-up of #8416. With 6.1.x, useOutlet() does not return null anymore, even when the nested route does not render. The OutletContext.Provider component is always rendered.
What version of React Router are you using?
6.1.1
Steps to Reproduce
This is a follow-up of #8416. With
6.1.x
,useOutlet()
does not returnnull
anymore, even when the nested route does not render. TheOutletContext.Provider
component is always rendered.Expected Behavior
useOutlet()
returnsnull
when the nested route does not render.Actual Behavior
useOutlet()
returnsOutletContext.Provider
element.The text was updated successfully, but these errors were encountered: