Harden server draft sync (Save & Exit + post-login transfer)

This commit is contained in:
adilallo committed 2026-04-06 22:46:00 -06:00
1 parent b6b833e80f
commit a4f0b449b6
24 files changed
+457 -102

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
import type { CreateFlowState } from "../../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;
}