Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 17c160c

Browse files
committed
pass pathname down to onenter
1 parent 6bd0b39 commit 17c160c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gatsby-plugin-transition-link",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A link component for page transitions in gatsby.",
55
"repository": "https://github.com/TylerBarnes/gatsby-plugin-transition-link",
66
"homepage": "https://gatsby-plugin-transition-link.netlify.com/",

src/components/TransitionHandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default class TransitionHandler extends Component {
5252
entryTrigger,
5353
entryProps,
5454
exitProps,
55+
pathname,
5556
e
5657
})
5758
}

src/functions/onEnter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const onEnter = ({
55
entryTrigger,
66
entryProps,
77
exitProps,
8+
pathname,
89
e
910
}) => {
1011
// fix scroll jumping when navigating with browser buttons

0 commit comments

Comments
 (0)