Harden server draft sync (Save & Exit + post-login transfer)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user