page-transition 0.1.0-beta.48 → 0.1.0-beta.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@ A page transition library for the Next.js App Router.
10
10
  - Scroll restoration
11
11
 
12
12
  ## Install
13
- ![Version](https://img.shields.io/badge/v_0.1.0--beta.47-000000) ![68.0 KB](https://img.shields.io/badge/68.0_KB-1677FF)
13
+ ![Version](https://img.shields.io/badge/v_0.1.0--beta.48-000000) ![68.3 KB](https://img.shields.io/badge/68.3_KB-1677FF)
14
14
 
15
15
  `npm install page-transition@beta`
16
16
 
@@ -72,6 +72,7 @@ export function useHandleLinkClick({ container, handleLinkClick, currentPathname
72
72
  new Promise((resolve) => {
73
73
  if (state.current === 'navigating') {
74
74
  if (basePathUrl === currentPathname.current) {
75
+ afterExitFn.current?.();
75
76
  return;
76
77
  }
77
78
  else if (basePathUrl !== currentPathname.current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.48",
3
+ "version": "0.1.0-beta.49",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [