MCPcopy Index your code
hub / github.com/coder/coder / getParamsWithoutPage

Function getParamsWithoutPage

site/src/hooks/usePaginatedQuery.ts:339–343  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

337 * prefetching)
338 */
339function 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

Callers 2

getQueryOptionsFromPageFunction · 0.85
usePaginatedQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected