Skip to content

Commit

Permalink
feat(web): add comment to customize hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Jan 28, 2022
1 parent 7a09ad8 commit 6942ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/flat-web/src/utils/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export function useReplaceHistory(): <T extends RouteNameType>(
}

/**
* get url parameters
* Get url parameters
* This facility not involves react-router, so you can use it simply.
*/
export function useURLParams(): Record<string, string> {
const urlSearchParams = new URLSearchParams(window.location.search);
Expand Down

0 comments on commit 6942ec6

Please sign in to comment.