Releases: TylerBarnes/gatsby-plugin-transition-link
Pass onClick handlers through
Thanks to @lsirivong , onClick handlers get passed through to AniLink and TransitionLink and are called.
Bug fixes
Some small fixes + default fade length change
- don't pass all props through to gatsby-link, just pass activeStyle and className
- only apply min height to the site wrapper when not in transition to fix some transition glitches for the swipe animation
- prevent the fade transition from jumping the exiting page to the top of the screen
- default fade transition default length is now 800ms instead of 400ms
AniLink fixes
Not all props were being passed through to gatsby link when using AniLink, this fixes that.
This also fixes some inconsistencies in the documentation and the "duration" prop in AniLink.
Fix gatsby build error from last release
Merge pull request #15 from TylerBarnes/prevent-scroll-jumping-on-save check for session storage existance before trying to use it
Fix scroll jumping on save during development
Previously, saving your components or pages would cause the page to jump to the top, meaning you would have to scroll down to the component you were working on over and over. This fixes that.
This should also fix the issue where footers in layout components weren't pushed down by the contents of your page.
Improved saved scroll position jumping + small refactor
Merge pull request #10 from TylerBarnes/layouts v1.2.5
Fixed undefined layout variable error
This releases fixes WebpackError: ReferenceError: GATSBY_LAYOUT_COMPONENT_PATH is not defined
Remove GSAP from required dependencies + fix layout bug
Prior to this release, GSAP needed to be installed for TransitionLink to not throw errors.
Now, the AniLink component is moved to it's own file and will need to be imported as default from "gatsby-plugin-transition-link/AniLink".
It looks like an earlier release also broke layout functionality and that has been fixed with this release.
If you were getting the error
warning in ../gatsby-plugin-transition-link/src/components/Layout.js
Critical dependency: the request of a dependency is an expression
v1.2.2 fixes this.
Small fix
- Not all page props were being passed to layouts
- Pathname wasn't being passed to the onEnter function which is using it