@tanstack/history
Advanced tools
@@ -358,2 +358,5 @@ "use strict"; | ||
| const getLocation = () => parseHref(entries[index], states[index]); | ||
| let blockers = []; | ||
| const _getBlockers = () => blockers; | ||
| const _setBlockers = (newBlockers) => blockers = newBlockers; | ||
| return createHistory({ | ||
@@ -384,3 +387,5 @@ getLocation, | ||
| }, | ||
| createHref: (path) => path | ||
| createHref: (path) => path, | ||
| getBlockers: _getBlockers, | ||
| setBlockers: _setBlockers | ||
| }); | ||
@@ -387,0 +392,0 @@ } |
@@ -356,2 +356,5 @@ const stateIndexKey = "__TSR_index"; | ||
| const getLocation = () => parseHref(entries[index], states[index]); | ||
| let blockers = []; | ||
| const _getBlockers = () => blockers; | ||
| const _setBlockers = (newBlockers) => blockers = newBlockers; | ||
| return createHistory({ | ||
@@ -382,3 +385,5 @@ getLocation, | ||
| }, | ||
| createHref: (path) => path | ||
| createHref: (path) => path, | ||
| getBlockers: _getBlockers, | ||
| setBlockers: _setBlockers | ||
| }); | ||
@@ -385,0 +390,0 @@ } |
+1
-1
| { | ||
| "name": "@tanstack/history", | ||
| "version": "1.145.7", | ||
| "version": "1.151.1", | ||
| "description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
+7
-0
@@ -596,2 +596,7 @@ // While the public API was clearly inspired by the "history" npm package, | ||
| let blockers: Array<NavigationBlocker> = [] | ||
| const _getBlockers = () => blockers | ||
| const _setBlockers = (newBlockers: Array<NavigationBlocker>) => | ||
| (blockers = newBlockers) | ||
| return createHistory({ | ||
@@ -624,2 +629,4 @@ getLocation, | ||
| createHref: (path) => path, | ||
| getBlockers: _getBlockers, | ||
| setBlockers: _setBlockers, | ||
| }) | ||
@@ -626,0 +633,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116463
1.15%1581
1.02%