Skip to content

Commit

Permalink
Expanded comment about parseSearchString not being needed in future.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcottner committed Nov 13, 2023
1 parent d833061 commit f7d8ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/locationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function breadcrumbifyPath(path: string) {
return [["home", "/"]].concat(zip(crumbNames, crumbPaths));
}

// This may become obsolete when upgrading or switching router packages
// This may become obsolete when upgrading or switching router packages. Functionality
// is not built in to react-router v5, useSearchParams exists in v6 though.
export function parseSearchString(search?: string): Record<string, any> {
if (!search || !search.startsWith("?")) {
return {};
Expand Down

0 comments on commit f7d8ae3

Please sign in to comment.