[{"data":1,"prerenderedAt":179},["ShallowReactive",2],{"content-\u002Fe\u002Faf10":3},{"id":4,"title":5,"body":6,"condition":171,"description":172,"extension":173,"meta":174,"navigation":129,"path":175,"seo":176,"stem":177,"__hash__":178},"errors\u002Fe\u002Faf10.md","AF10",{"type":7,"value":8,"toc":167},"minimark",[9,13,28,31,41,46,58,62,152,163],[10,11,5],"h1",{"id":12},"af10",[14,15,16],"p",{},[17,18,19,23,24,27],"strong",{},[20,21,22],"code",{},"form.rehydrate()"," was called, but the form has no ",[20,25,26],{},"defaultValues"," factory to re-run.",[14,29,30],{},"In development this reads:",[32,33,34],"blockquote",{},[14,35,36,40],{},[37,38,39],"span",{},"attaform"," form.rehydrate(): no defaultValues factory was captured. Configure useForm({ defaultValues: () => ... }) to enable rehydrate.",[42,43,45],"h2",{"id":44},"what-happened","What happened",[14,47,48,51,52,54,55,57],{},[20,49,50],{},"rehydrate"," re-runs the ",[20,53,26],{}," function and resets the form around its fresh result. That contract only exists when ",[20,56,26],{}," was passed as a function; a plain object (or nothing) leaves nothing to re-run, so the call throws at the call site rather than resolving to a stale reset.",[42,59,61],{"id":60},"how-to-fix-it","How to fix it",[63,64,69],"pre",{"className":65,"code":66,"language":67,"meta":68,"style":68},"language-ts shiki shiki-themes github-light github-dark","const form = useForm({\n  schema,\n  defaultValues: () => fetchDraft(id),\n})\n\n\u002F\u002F Later, when the source data changes:\nawait form.rehydrate()\n","ts","",[20,70,71,94,100,118,124,131,138],{"__ignoreMap":68},[37,72,75,79,83,86,90],{"class":73,"line":74},"line",1,[37,76,78],{"class":77},"szBVR","const",[37,80,82],{"class":81},"sj4cs"," form",[37,84,85],{"class":77}," =",[37,87,89],{"class":88},"sScJk"," useForm",[37,91,93],{"class":92},"sVt8B","({\n",[37,95,97],{"class":73,"line":96},2,[37,98,99],{"class":92},"  schema,\n",[37,101,103,106,109,112,115],{"class":73,"line":102},3,[37,104,105],{"class":88},"  defaultValues",[37,107,108],{"class":92},": () ",[37,110,111],{"class":77},"=>",[37,113,114],{"class":88}," fetchDraft",[37,116,117],{"class":92},"(id),\n",[37,119,121],{"class":73,"line":120},4,[37,122,123],{"class":92},"})\n",[37,125,127],{"class":73,"line":126},5,[37,128,130],{"emptyLinePlaceholder":129},true,"\n",[37,132,134],{"class":73,"line":133},6,[37,135,137],{"class":136},"sJ8bj","\u002F\u002F Later, when the source data changes:\n",[37,139,141,144,147,149],{"class":73,"line":140},7,[37,142,143],{"class":77},"await",[37,145,146],{"class":92}," form.",[37,148,50],{"class":88},[37,150,151],{"class":92},"()\n",[14,153,154,159,160,162],{},[155,156,158],"a",{"href":157},"\u002Fdocs\u002Freading-the-form\u002Fthe-form","The form"," covers ",[20,161,26],{}," in both shapes.",[164,165,166],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":68,"searchDepth":96,"depth":96,"links":168},[169,170],{"id":44,"depth":96,"text":45},{"id":60,"depth":96,"text":61},"`form.rehydrate()` ran without a `defaultValues` factory","form.rehydrate() ran on a form whose defaultValues was not the function form, so there is no factory to re-run. Configure a factory to enable it.","md",{},"\u002Fe\u002Faf10",{"title":5,"description":172},"e\u002Faf10","Pa6GnR7YURUAbM2p37Q8m_11SKm89k3fqcPaXxRTLbc",1787641563236]