-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove state argument from push/replace
- Loading branch information
Showing
7 changed files
with
20 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,14 +70,6 @@ function useQueries(createHistory) { | |
return history.replaceState(state, appendQuery(path, query)) | ||
} | ||
|
||
function push(path, query, state) { | ||
return history.push(appendQuery(path, query), state) | ||
} | ||
|
||
function replace(path, query, state) { | ||
return history.replace(appendQuery(path, query), state) | ||
} | ||
|
||
function createPath(path, query) { | ||
return history.createPath(appendQuery(path, query)) | ||
} | ||
|
@@ -96,8 +88,6 @@ function useQueries(createHistory) { | |
listen, | ||
pushState, | ||
replaceState, | ||
push, | ||
replace, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
robyoder
|
||
createPath, | ||
createHref, | ||
createLocation | ||
|
@mjackson Won't
push
andreplace
support secondquery
argument?