* Strips out the page number from a query so that there aren't mismatches * between it and usePaginatedQuery's currentPage property (especially for * prefetching)
(params: URLSearchParams)
| 337 | * prefetching) |
| 338 | */ |
| 339 | function getParamsWithoutPage(params: URLSearchParams): URLSearchParams { |
| 340 | const withoutPage = new URLSearchParams(params); |
| 341 | withoutPage.delete(PAGE_NUMBER_PARAMS_KEY); |
| 342 | return withoutPage; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * All the pagination-properties for UsePaginatedQueryResult. Split up so that |
no outgoing calls
no test coverage detected