Files
klz-cables.com/.pnpm-store/v10/files/10/9f8443af3cb45520bcbb5b510ec827e32213dfb2a06e97819026422b92773e199d88adc4b25dc0742c05def54817f24e0a06c534b1668896ccfc082b2bf21c
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

12 lines
730 B
Plaintext

/**
* A hook for managing state that can be controlled by props but also overridden locally.
* Props always take precedence if they change, but local state can override them temporarily.
*
* @param propValue - The controlled value from props
* @param fallbackValue - Value to use when propValue is null or undefined
*
* @internal - may change or be removed without a major version bump
*/
export declare function useControllableState<T, D>(propValue: T, fallbackValue: D): [T extends NonNullable<T> ? T : D | NonNullable<T>, (value: ((prev: T) => T) | T) => void];
export declare function useControllableState<T>(propValue: T): [T, (value: ((prev: T) => T) | T) => void];
//# sourceMappingURL=useControllableState.d.ts.map