Skip to content

Commit

Permalink
improvement: export queryParamsFromLocation
Browse files Browse the repository at this point in the history
Developers should be able to use the same functionality as the
useQueryParams hook provides without using the hook.

Added queryParamsFromLocation to exports.
  • Loading branch information
Gido Manders committed Dec 30, 2024
1 parent 82e41ab commit c79f77d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { Url } from './models';
export { urlBuilder, UrlBuilderOptions } from './urlBuilder';
export { withQueryParams } from './withQueryParams';
export { useQueryParams } from './useQueryParams';
export { queryParamsFromLocation } from './queryparams';
1 change: 1 addition & 0 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('index', () => {
"urlBuilder": [Function],
"useQueryParams": [Function],
"withQueryParams": [Function],
"queryParamsFromLocation": [Function],
}
`);
});
Expand Down

0 comments on commit c79f77d

Please sign in to comment.