diff --git a/src/routes/_auth/(agreements)/agreements.$agreementId.check-in.tsx b/src/routes/_auth/(agreements)/agreements.$agreementId.check-in.tsx index 97ffdc88..44e19cb6 100644 --- a/src/routes/_auth/(agreements)/agreements.$agreementId.check-in.tsx +++ b/src/routes/_auth/(agreements)/agreements.$agreementId.check-in.tsx @@ -20,7 +20,6 @@ export const Route = createFileRoute( stage: z.string().optional(), }) .parse(search), - preSearchFilters: [() => ({ stage: "rental-information" })], component: CheckinAgreementPage, }); diff --git a/src/routes/_auth/(agreements)/agreements.$agreementId.edit.tsx b/src/routes/_auth/(agreements)/agreements.$agreementId.edit.tsx index f250dced..c1c23239 100644 --- a/src/routes/_auth/(agreements)/agreements.$agreementId.edit.tsx +++ b/src/routes/_auth/(agreements)/agreements.$agreementId.edit.tsx @@ -20,7 +20,6 @@ export const Route = createFileRoute( stage: z.string().optional(), }) .parse(search), - preSearchFilters: [() => ({ stage: "rental-information" })], component: EditAgreementPage, }); diff --git a/src/routes/_auth/(agreements)/agreements.index.tsx b/src/routes/_auth/(agreements)/agreements.index.tsx index 2b74760f..98773219 100644 --- a/src/routes/_auth/(agreements)/agreements.index.tsx +++ b/src/routes/_auth/(agreements)/agreements.index.tsx @@ -53,7 +53,6 @@ import { AgreementDateTimeColumns, sortColOrderByOrderIndex, } from "@/lib/utils/columns"; -import { STORAGE_DEFAULTS } from "@/lib/utils/constants"; import { getXPaginationFromHeaders } from "@/lib/utils/headers"; import { normalizeAgreementListSearchParams } from "@/lib/utils/normalize-search-params"; import { insertSpacesBeforeCaps } from "@/lib/utils/random"; @@ -64,13 +63,6 @@ import { sortObjectKeys } from "@/lib/utils"; export const Route = createFileRoute("/_auth/(agreements)/agreements/")({ validateSearch: (search) => AgreementSearchQuerySchema.parse(search), - preSearchFilters: [ - (search) => ({ - page: search?.page || 1, - size: search?.size || parseInt(STORAGE_DEFAULTS.tableRowCount), - filters: search?.filters ?? undefined, - }), - ], beforeLoad: ({ context, search }) => { const auth = getAuthFromRouterContext(context); const parsedSearch = normalizeAgreementListSearchParams(search); diff --git a/src/routes/_auth/(agreements)/agreements.new.tsx b/src/routes/_auth/(agreements)/agreements.new.tsx index 7ae5595a..b53bfa65 100644 --- a/src/routes/_auth/(agreements)/agreements.new.tsx +++ b/src/routes/_auth/(agreements)/agreements.new.tsx @@ -17,7 +17,6 @@ export const Route = createFileRoute("/_auth/(agreements)/agreements/new")({ stage: z.string().optional(), }) .parse(search), - preSearchFilters: [() => ({ stage: "rental-information" })], component: AddAgreementPage, }); diff --git a/src/routes/_auth/(customers)/customers.index.tsx b/src/routes/_auth/(customers)/customers.index.tsx index 88c6226f..bb0bcf70 100644 --- a/src/routes/_auth/(customers)/customers.index.tsx +++ b/src/routes/_auth/(customers)/customers.index.tsx @@ -47,7 +47,6 @@ import { Container } from "@/routes/-components/container"; import { getAuthFromRouterContext } from "@/lib/utils/auth"; import { sortColOrderByOrderIndex } from "@/lib/utils/columns"; -import { STORAGE_DEFAULTS } from "@/lib/utils/constants"; import { getXPaginationFromHeaders } from "@/lib/utils/headers"; import { normalizeCustomerListSearchParams } from "@/lib/utils/normalize-search-params"; import { insertSpacesBeforeCaps } from "@/lib/utils/random"; @@ -56,13 +55,6 @@ import { titleMaker } from "@/lib/utils/title-maker"; export const Route = createFileRoute("/_auth/(customers)/customers/")({ validateSearch: (search) => CustomerSearchQuerySchema.parse(search), - preSearchFilters: [ - (search) => ({ - page: search?.page || 1, - size: search?.size || parseInt(STORAGE_DEFAULTS.tableRowCount), - filters: search?.filters ?? undefined, - }), - ], beforeLoad: ({ context, search }) => { const auth = getAuthFromRouterContext(context); const parsedSearch = normalizeCustomerListSearchParams(search); diff --git a/src/routes/_auth/(fleet)/fleet.index.tsx b/src/routes/_auth/(fleet)/fleet.index.tsx index e1060a93..b100c7d6 100644 --- a/src/routes/_auth/(fleet)/fleet.index.tsx +++ b/src/routes/_auth/(fleet)/fleet.index.tsx @@ -49,7 +49,6 @@ import { Container } from "@/routes/-components/container"; import { getAuthFromRouterContext } from "@/lib/utils/auth"; import { sortColOrderByOrderIndex } from "@/lib/utils/columns"; -import { STORAGE_DEFAULTS } from "@/lib/utils/constants"; import { getXPaginationFromHeaders } from "@/lib/utils/headers"; import { normalizeVehicleListSearchParams } from "@/lib/utils/normalize-search-params"; import { insertSpacesBeforeCaps } from "@/lib/utils/random"; @@ -58,13 +57,6 @@ import { titleMaker } from "@/lib/utils/title-maker"; export const Route = createFileRoute("/_auth/(fleet)/fleet/")({ validateSearch: (search) => VehicleSearchQuerySchema.parse(search), - preSearchFilters: [ - (search) => ({ - page: search?.page || 1, - size: search?.size || parseInt(STORAGE_DEFAULTS.tableRowCount), - filters: search?.filters ?? undefined, - }), - ], beforeLoad: ({ context, search }) => { const auth = getAuthFromRouterContext(context); const parsedSearch = normalizeVehicleListSearchParams(search); diff --git a/src/routes/_auth/(reservations)/reservations.$reservationId.edit.tsx b/src/routes/_auth/(reservations)/reservations.$reservationId.edit.tsx index ffc31e05..e65ed79d 100644 --- a/src/routes/_auth/(reservations)/reservations.$reservationId.edit.tsx +++ b/src/routes/_auth/(reservations)/reservations.$reservationId.edit.tsx @@ -20,7 +20,6 @@ export const Route = createFileRoute( stage: z.string().optional(), }) .parse(search), - preSearchFilters: [() => ({ stage: "rental-information" })], component: EditReservationPage, }); diff --git a/src/routes/_auth/(reservations)/reservations.index.tsx b/src/routes/_auth/(reservations)/reservations.index.tsx index abbe3e5b..ea184ab7 100644 --- a/src/routes/_auth/(reservations)/reservations.index.tsx +++ b/src/routes/_auth/(reservations)/reservations.index.tsx @@ -62,13 +62,6 @@ import { titleMaker } from "@/lib/utils/title-maker"; export const Route = createFileRoute("/_auth/(reservations)/reservations/")({ validateSearch: (search) => ReservationSearchQuerySchema.parse(search), - preSearchFilters: [ - (search) => ({ - page: search?.page || 1, - size: search?.size || parseInt(STORAGE_DEFAULTS.tableRowCount), - filters: search?.filters ?? undefined, - }), - ], beforeLoad: ({ context, search }) => { const auth = getAuthFromRouterContext(context); const parsedSearch = normalizeReservationListSearchParams(search); diff --git a/src/routes/_auth/(reservations)/reservations.new.tsx b/src/routes/_auth/(reservations)/reservations.new.tsx index 2bdab4c5..2ca020de 100644 --- a/src/routes/_auth/(reservations)/reservations.new.tsx +++ b/src/routes/_auth/(reservations)/reservations.new.tsx @@ -17,7 +17,6 @@ export const Route = createFileRoute("/_auth/(reservations)/reservations/new")({ stage: z.string().optional(), }) .parse(search), - preSearchFilters: [() => ({ stage: "rental-information" })], component: AddReservationPage, });