volleyball-dev-frontend/node_modules/@headlessui/react/dist/hooks/use-default-value.d.ts
Marc Wieland 33181acf83
Some checks are pending
Deploy Volleyball CMS / deploy (push) Waiting to run
Last
2025-06-02 18:56:22 +02:00

9 lines
350 B
TypeScript

/**
* Returns a stable value that never changes unless the component is re-mounted.
*
* This ensures that we can use this value in a dependency array without causing
* unnecessary re-renders (because while the incoming `value` can change, the
* returned `defaultValue` won't change).
*/
export declare function useDefaultValue<T>(value: T): T;