TylerBarnes / gatsby-plugin-transition-link

A link component for page transitions in gatsby
537 stars 70 forks source link

Anilink transition only working once? #201

Open Vidvi opened 4 years ago

Vidvi commented 4 years ago

Yeah, as the title says I'm having some trouble with Anilink. First time I load the page and click on a link which is: <AniLink cover to="../projects" direction="down" color="orange"> {portrait} </AniLink> it only affects the link once. When I go back to the main page (I tested all the possible ways) and click on the same link, Anilink doesn't affect the transition in any way except the cover part can't be seen. It only loads the page on top of the main page and then goes to the new page.

I'm pretty sure I need to use the TransitionLink to apply exit and entry points somehow and declare when the user is in where but then the whole point of making transitions easy would then be gone. Anyone else experiencing issues like this? Also context: I'm trying to make the transitions in the GatsbyJS starter thing.

rohit-gohri commented 4 years ago

I have similar problems sometimes but only when using gatsby develop. Haven't experienced the page loading on top on the production build. So could be related to gatsby cache?