diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx index c5383562c..194814e42 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/map/page.tsx @@ -1,3 +1,4 @@ +import stringify from "json-stable-stringify-without-jsonify" import { Suspense } from "react" import { SelectHotelMapContainer } from "@/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContainer" @@ -16,11 +17,13 @@ export default async function SelectHotelMapPage({ }: PageArgs) { setLang(params.lang) + const suspenseKey = stringify(searchParams) + return (
} > diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx index 065533eba..0d611b429 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-hotel/page.tsx @@ -1,3 +1,4 @@ +import stringify from "json-stable-stringify-without-jsonify" import { Suspense } from "react" import SelectHotel from "@/components/HotelReservation/SelectHotel" @@ -13,11 +14,10 @@ export default async function SelectHotelPage({ }: PageArgs) { setLang(params.lang) + const suspenseKey = stringify(searchParams) + return ( - } - > + }> ) diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx index fb352f05c..f1941fbea 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx @@ -1,4 +1,5 @@ import { differenceInCalendarDays, format, isWeekend } from "date-fns" +import stringify from "json-stable-stringify-without-jsonify" import { notFound } from "next/navigation" import { Suspense } from "react" @@ -96,17 +97,14 @@ export default async function SelectRatePage({ const hotelId = +hotel.id const booking = convertSearchParamsToObj(searchParams) - + const suspenseKey = stringify(searchParams) return ( <> }> - } - > + }> - +