@storm-stack/hooks
Version:
A collection of React hooks used by Storm Software in various client libraries and applications.
8 lines (7 loc) • 371 B
TypeScript
export declare function useDidFinishSSR<A = boolean>(value?: A, options?: {
sync?: boolean;
}): A | false;
export declare function useDidFinishSSRSync<A = boolean>(value?: A): A | false;
type FunctionOrValue<Value> = Value extends () => infer X ? X : Value;
export declare function useClientValue<Value>(value?: Value): FunctionOrValue<Value> | undefined;
export {};