UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

9 lines 415 B
/** * Hook that returns a server value during SSR and switches to client value after hydration * * @param clientValue - Function that returns the value to use on the client * @param serverValue - Value to use during SSR * @returns The appropriate value based on rendering context */ export declare function useClientOnly<T>(clientValue: () => T, serverValue: T): T; //# sourceMappingURL=useClientOnly.d.ts.map