Files
community-rule/lib/create/draftHydrationUtils.ts
T
2026-04-18 14:12:49 -06:00

7 lines
289 B
TypeScript

import type { CreateFlowState } from "../../app/(app)/create/types";
/** True when the client should treat a draft payload as non-empty for hydration / conflict checks. */
export function createFlowStateHasKeys(state: CreateFlowState): boolean {
return Object.keys(state).length > 0;
}