Merged in chore/export-name-from-file (pull request #3439)

chore(storagecleaner): import from file to avoid huge footprints on every page

* chore(storagecleaner): import from file to avoid huge footprints on every page


Approved-by: Anton Gunnarsson
This commit is contained in:
Linus Flood
2026-01-14 12:55:06 +00:00
parent 2410d887df
commit e54310b00f
5 changed files with 4 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import { LoadingSpinner } from "@scandic-hotels/design-system/LoadingSpinner"
import { trackEvent } from "@scandic-hotels/tracking/base" import { trackEvent } from "@scandic-hotels/tracking/base"
import { trackPaymentEvent } from "@scandic-hotels/tracking/payment" import { trackPaymentEvent } from "@scandic-hotels/tracking/payment"
import { detailsStorageName } from "../../../../stores/enter-details" import { detailsStorageName } from "../../../../stores/enter-details/consts"
import { serializeBookingSearchParams } from "../../../../utils/url" import { serializeBookingSearchParams } from "../../../../utils/url"
import { import {
clearPaymentInfoSessionStorage, clearPaymentInfoSessionStorage,

View File

@@ -5,7 +5,7 @@ import { useEffect } from "react"
import { hotelreservation } from "@scandic-hotels/common/constants/routes/hotelReservation" import { hotelreservation } from "@scandic-hotels/common/constants/routes/hotelReservation"
import useLang from "../../hooks/useLang" import useLang from "../../hooks/useLang"
import { detailsStorageName } from "../../stores/enter-details" import { detailsStorageName } from "../../stores/enter-details/consts"
/** /**
* Cleanup component to make sure no stale data is left * Cleanup component to make sure no stale data is left

View File

@@ -0,0 +1 @@
export const detailsStorageName = "rooms-details-storage"

View File

@@ -2,7 +2,7 @@ import { parsePhoneNumberFromString } from "libphonenumber-js"
import { logger } from "@scandic-hotels/common/logger" import { logger } from "@scandic-hotels/common/logger"
import { detailsStorageName } from "." import { detailsStorageName } from "./consts"
import type { User } from "@scandic-hotels/trpc/types/user" import type { User } from "@scandic-hotels/trpc/types/user"

View File

@@ -35,8 +35,6 @@ const defaultGuestState = {
zipCode: "", zipCode: "",
} }
export const detailsStorageName = "rooms-details-storage"
export type EnterDetailsStore = ReturnType<typeof createDetailsStore> export type EnterDetailsStore = ReturnType<typeof createDetailsStore>
export function createDetailsStore( export function createDetailsStore(
initialState: InitialState, initialState: InitialState,