9 lines
437 B
TypeScript
9 lines
437 B
TypeScript
/**
|
|
* Returns true only after the component has mounted on the client. Used to gate
|
|
* consent UI (CookieBanner, CookieButton) so it renders nothing during SSR /
|
|
* first paint — preventing the React 19 / Next hydration mismatch that projects
|
|
* were working around with their own setTimeout-based ConsentWrapper. Built into
|
|
* the components now, so no project wrapper is needed.
|
|
*/
|
|
export declare function useIsMounted(): boolean;
|