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
The following code produces a match for /pro when on /products using isPartiallyCurrent, is this correct? We are trying to use this to add active styling to top level Links when on subpages. So /products/product1 should not match /pro but it should match /products. Perhaps isPartiallyCurrent is not what we are looking for?
and used getProps={isPartiallyActiveExact} on the Link's that needed this. This makes sure that /pro does not match /products etc. but /pro/someotherpage will match as partially active which to me is more correct. Perhaps this could be implemented as isPartiallyActiveExact or something like that?
Hi!
The following code produces a match for /pro when on /products using isPartiallyCurrent, is this correct? We are trying to use this to add active styling to top level Links when on subpages. So /products/product1 should not match /pro but it should match /products. Perhaps isPartiallyCurrent is not what we are looking for?
You can run this easily by pasting this code over index.js in this example https://reach.tech/router/example/active-links :)
Best regards,
Andreas
The text was updated successfully, but these errors were encountered: