TanStackT
TanStackโ€ข14mo agoโ€ข
2 replies
constitutional-coral

Link component always returns `isActive` `true`

Hi all ๐Ÿ‘‹๐Ÿผ

Version: 0.0.1-beta.53

I'm using the Link component but they all return
true
for isActive:

<Link ref={ref} {...linkProps}>
  {({ isActive }) => {
    return (
      <CustomNavigation text={text} icon={icon} active={isActive} />
    )
  }}
</Link>


The links navigates correctly to different pages with different urls. Below are the links to properties:
- "/sites/$siteIdentifier"
- "/sites/$siteIdentifier/pageA"
- "/sites/$siteIdentifier/pageB"
- "/sites/$siteIdentifier/pageC"

Event If i sett activeOptions.exact to
true
on all my Link components they are all still returning isActive
true
.

Any ideas?
Was this page helpful?