[{"data":1,"prerenderedAt":502},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-states":105,"-docs-guide-states-surround":497},[4,35,80,90],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[10,15,20,25,30],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Nuxt module","\u002Fdocs\u002Fgetting-started\u002Fnuxt","docs\u002F1.getting-started\u002F2.nuxt","i-simple-icons-nuxtdotjs",{"title":21,"path":22,"stem":23,"icon":24},"Vue + Vite","\u002Fdocs\u002Fgetting-started\u002Fvue","docs\u002F1.getting-started\u002F3.vue","i-simple-icons-vuedotjs",{"title":26,"path":27,"stem":28,"icon":29},"Quick Start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F4.quick-start","i-lucide-rocket",{"title":31,"path":32,"stem":33,"icon":34},"AI agents","\u002Fdocs\u002Fgetting-started\u002Fai-agents","docs\u002F1.getting-started\u002F5.ai-agents","i-lucide-bot",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[40,45,50,55,60,65,70,75],{"title":41,"path":42,"stem":43,"icon":44},"States","\u002Fdocs\u002Fguide\u002Fstates","docs\u002F2.guide\u002F1.states","i-lucide-toggle-left",{"title":46,"path":47,"stem":48,"icon":49},"Sample and Memory","\u002Fdocs\u002Fguide\u002Fsample-and-memory","docs\u002F2.guide\u002F2.sample-and-memory","i-lucide-history",{"title":51,"path":52,"stem":53,"icon":54},"Markup","\u002Fdocs\u002Fguide\u002Fmarkup","docs\u002F2.guide\u002F3.markup","i-lucide-code-xml",{"title":56,"path":57,"stem":58,"icon":59},"How It Works","\u002Fdocs\u002Fguide\u002Funder-the-hood","docs\u002F2.guide\u002F4.under-the-hood","i-lucide-cog",{"title":61,"path":62,"stem":63,"icon":64},"Real Screens","\u002Fdocs\u002Fguide\u002Freal-screens","docs\u002F2.guide\u002F5.real-screens","i-lucide-layout-dashboard",{"title":66,"path":67,"stem":68,"icon":69},"Debugging","\u002Fdocs\u002Fguide\u002Fdebugging","docs\u002F2.guide\u002F6.debugging","i-lucide-bug",{"title":71,"path":72,"stem":73,"icon":74},"Reveal","\u002Fdocs\u002Fguide\u002Freveal","docs\u002F2.guide\u002F7.reveal","i-lucide-sparkles",{"title":76,"path":77,"stem":78,"icon":79},"Troubleshooting","\u002Fdocs\u002Fguide\u002Ftroubleshooting","docs\u002F2.guide\u002F8.troubleshooting","i-lucide-life-buoy",{"title":81,"icon":6,"path":82,"stem":83,"children":84,"page":6},"Customization","\u002Fdocs\u002Fcustomization","docs\u002F3.customization",[85],{"title":86,"path":87,"stem":88,"icon":89},"Theming","\u002Fdocs\u002Fcustomization\u002Ftheming","docs\u002F3.customization\u002F1.theming","i-lucide-palette",{"title":91,"icon":6,"path":92,"stem":93,"children":94,"page":6},"API","\u002Fdocs\u002Fapi","docs\u002F4.api",[95,100],{"title":96,"path":97,"stem":98,"icon":99},"Skeleton","\u002Fdocs\u002Fapi\u002Fskeleton","docs\u002F4.api\u002F1.skeleton","i-lucide-box",{"title":101,"path":102,"stem":103,"icon":104},"Options","\u002Fdocs\u002Fapi\u002Foptions","docs\u002F4.api\u002F2.options","i-lucide-settings",{"id":106,"title":41,"body":107,"description":490,"extension":491,"links":492,"meta":493,"navigation":494,"path":42,"seo":495,"stem":43,"__hash__":496},"docs\u002Fdocs\u002F2.guide\u002F1.states.md",{"type":108,"value":109,"toc":484},"minimark",[110,113,118,150,217,241,245,253,257,282,289,293,311,480],[111,112],"states-demo",{},[114,115,117],"h2",{"id":116},"what-the-component-decides","What the component decides",[119,120,121,122,126,127,130,131,134,135,138,139,130,142,145,146,149],"p",{},"With ",[123,124,125],"code",{},":of",", the state comes from the result of ",[123,128,129],{},"useFetch",", ",[123,132,133],{},"useAsyncData"," or TanStack Query's ",[123,136,137],{},"useQuery",": anything with ",[123,140,141],{},"data",[123,143,144],{},"status"," and ",[123,147,148],{},"error",".",[151,152,153,166],"table",{},[154,155,156],"thead",{},[157,158,159,163],"tr",{},[160,161,162],"th",{},"What arrived",[160,164,165],{},"What's shown",[167,168,169,182,194,210],"tbody",{},[157,170,171,179],{},[172,173,174,175,178],"td",{},"no data yet, or ",[123,176,177],{},"[]"," while the request is still on its way",[172,180,181],{},"the skeleton",[157,183,184,187],{},[172,185,186],{},"an error",[172,188,189,190,193],{},"the ",[123,191,192],{},"#error"," slot",[157,195,196,205],{},[172,197,198,199,202,203],{},"a successful ",[123,200,201],{},"null"," or ",[123,204,177],{},[172,206,189,207,193],{},[123,208,209],{},"#empty",[157,211,212,214],{},[172,213,141],{},[172,215,216],{},"the default slot",[119,218,219,220,202,223,226,227,230,231,233,234,237,238,149],{},"An empty list before the answer is the data layer's placeholder, as with ",[123,221,222],{},"default: () => []",[123,224,225],{},"data ?? []",". The skeleton is drawn from ",[123,228,229],{},"sample"," or memory then, not from that list. The same goes for ",[123,232,177],{}," passed to ",[123,235,236],{},":data"," together with ",[123,239,240],{},":loading",[114,242,244],{"id":243},"refreshing","Refreshing",[119,246,247,250,251,149],{},[123,248,249],{},"refresh()"," doesn't flash the skeleton: the old data stays on screen until the new data arrives. If you do want a skeleton, pass ",[123,252,240],{},[114,254,256],{"id":255},"setting-the-state-by-hand","Setting the state by hand",[119,258,259,260,130,262,130,265,145,268,270,271,274,275,278,279,149],{},"Set the state by hand with ",[123,261,141],{},[123,263,264],{},"loading",[123,266,267],{},"empty",[123,269,148],{},". With ",[123,272,273],{},"immediate: false",", pass ",[123,276,277],{},":empty"," until you call ",[123,280,281],{},"execute()",[119,283,284,285,288],{},"The ",[123,286,287],{},"reveal"," event fires when content has replaced the skeleton.",[114,290,292],{"id":291},"with-suspense","With Suspense",[119,294,295,296,299,300,303,304,307,308,149],{},"A child component that awaits in ",[123,297,298],{},"setup"," has no data to pass to ",[123,301,302],{},"\u003CSkeleton>",". ",[123,305,306],{},"\u003CSkeletonSuspense>"," is a Suspense boundary with a measured fallback: the component goes in the default slot, and markup rendered from sample data goes in ",[123,309,310],{},"#skeleton",[312,313,314,317],"code-preview",{},[315,316],"suspense-demo",{},[318,319,321],"template",{"v-slot:code":320},"",[322,323,327],"pre",{"className":324,"code":325,"language":326,"meta":320,"style":320},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003CSkeletonSuspense label=\"Loading post\">\n    \u003CAsyncPost \u002F>\n\n    \u003Ctemplate #skeleton>\n      \u003Ch4>A title of about this length\u003C\u002Fh4>\n\n      \u003Cp>The sample text stands in for the post until it loads.\u003C\u002Fp>\n    \u003C\u002Ftemplate>\n  \u003C\u002FSkeletonSuspense>\n\u003C\u002Ftemplate>\n","vue",[123,328,329,344,371,383,390,405,428,433,451,461,471],{"__ignoreMap":320},[330,331,334,338,341],"span",{"class":332,"line":333},"line",1,[330,335,337],{"class":336},"sMK4o","\u003C",[330,339,318],{"class":340},"swJcz",[330,342,343],{"class":336},">\n",[330,345,347,350,353,357,360,363,367,369],{"class":332,"line":346},2,[330,348,349],{"class":336},"  \u003C",[330,351,352],{"class":340},"SkeletonSuspense",[330,354,356],{"class":355},"spNyl"," label",[330,358,359],{"class":336},"=",[330,361,362],{"class":336},"\"",[330,364,366],{"class":365},"sfazB","Loading post",[330,368,362],{"class":336},[330,370,343],{"class":336},[330,372,374,377,380],{"class":332,"line":373},3,[330,375,376],{"class":336},"    \u003C",[330,378,379],{"class":340},"AsyncPost",[330,381,382],{"class":336}," \u002F>\n",[330,384,386],{"class":332,"line":385},4,[330,387,389],{"emptyLinePlaceholder":388},true,"\n",[330,391,393,395,397,400,403],{"class":332,"line":392},5,[330,394,376],{"class":336},[330,396,318],{"class":340},[330,398,399],{"class":336}," #",[330,401,402],{"class":355},"skeleton",[330,404,343],{"class":336},[330,406,408,411,414,417,421,424,426],{"class":332,"line":407},6,[330,409,410],{"class":336},"      \u003C",[330,412,413],{"class":340},"h4",[330,415,416],{"class":336},">",[330,418,420],{"class":419},"sTEyZ","A title of about this length",[330,422,423],{"class":336},"\u003C\u002F",[330,425,413],{"class":340},[330,427,343],{"class":336},[330,429,431],{"class":332,"line":430},7,[330,432,389],{"emptyLinePlaceholder":388},[330,434,436,438,440,442,445,447,449],{"class":332,"line":435},8,[330,437,410],{"class":336},[330,439,119],{"class":340},[330,441,416],{"class":336},[330,443,444],{"class":419},"The sample text stands in for the post until it loads.",[330,446,423],{"class":336},[330,448,119],{"class":340},[330,450,343],{"class":336},[330,452,454,457,459],{"class":332,"line":453},9,[330,455,456],{"class":336},"    \u003C\u002F",[330,458,318],{"class":340},[330,460,343],{"class":336},[330,462,464,467,469],{"class":332,"line":463},10,[330,465,466],{"class":336},"  \u003C\u002F",[330,468,352],{"class":340},[330,470,343],{"class":336},[330,472,474,476,478],{"class":332,"line":473},11,[330,475,423],{"class":336},[330,477,318],{"class":340},[330,479,343],{"class":336},[481,482,483],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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":320,"searchDepth":346,"depth":346,"links":485},[486,487,488,489],{"id":116,"depth":346,"text":117},{"id":243,"depth":346,"text":244},{"id":255,"depth":346,"text":256},{"id":291,"depth":346,"text":292},"Loading, content, empty responses and errors.","md",null,{},{"icon":44},{"title":41,"description":490},"USB-XcA6UDoA7zHaTNrHseOGlMCZ4A_p20GfT7RhXDY",[498,500],{"title":31,"path":32,"stem":33,"description":499,"icon":34,"children":-1},"Point your coding agent at these docs.",{"title":46,"path":47,"stem":48,"description":501,"icon":49,"children":-1},"Where the shape comes from on the first and later visits.",1794492020902]