[{"data":1,"prerenderedAt":418},["ShallowReactive",2],{"navigation":3,"-concepts":65,"-concepts-surround":415},[4,15,29,47],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Omni Async","\u002Fguide","1.guide\u002F1.index",[9,11],{"title":5,"path":6,"stem":7,"icon":10},"i-lucide-book-open",{"title":12,"path":13,"stem":14,"icon":10},"Quick start","\u002Fguide\u002Fquick-start","1.guide\u002F2.quick-start",{"title":16,"path":17,"stem":18,"children":19},"Async state","\u002Fconcepts","2.concepts\u002F1.index",[20,21,25],{"title":16,"path":17,"stem":18},{"title":22,"path":23,"stem":24},"Concurrency and cancellation","\u002Fconcepts\u002Fconcurrency-and-cancellation","2.concepts\u002F2.concurrency-and-cancellation",{"title":26,"path":27,"stem":28},"Notifications and equality","\u002Fconcepts\u002Fnotifications","2.concepts\u002F3.notifications",{"title":30,"path":31,"stem":32,"children":33},"Framework adapters","\u002Fframeworks","3.frameworks\u002F1.index",[34,35,39,43],{"title":30,"path":31,"stem":32},{"title":36,"path":37,"stem":38},"React","\u002Fframeworks\u002Freact","3.frameworks\u002F2.react",{"title":40,"path":41,"stem":42},"Vue","\u002Fframeworks\u002Fvue","3.frameworks\u002F3.vue",{"title":44,"path":45,"stem":46},"Svelte","\u002Fframeworks\u002Fsvelte","3.frameworks\u002F4.svelte",{"title":48,"path":49,"stem":50,"children":51},"Core API","\u002Fapi","4.api\u002F1.index",[52,53,57,61],{"title":48,"path":49,"stem":50},{"title":54,"path":55,"stem":56},"React API","\u002Fapi\u002Freact","4.api\u002F2.react",{"title":58,"path":59,"stem":60},"Vue API","\u002Fapi\u002Fvue","4.api\u002F3.vue",{"title":62,"path":63,"stem":64},"Svelte API","\u002Fapi\u002Fsvelte","4.api\u002F4.svelte",{"id":66,"title":16,"body":67,"description":80,"extension":410,"meta":411,"navigation":412,"path":17,"seo":413,"stem":18,"__hash__":414},"content\u002F2.concepts\u002F1.index.md",{"type":68,"value":69,"toc":406},"minimark",[70,74,213,220,225,343,350,395,399,402],[71,72,73],"p",{},"Every operation exposes one immutable snapshot:",[75,76,81],"pre",{"className":77,"code":78,"language":79,"meta":80,"style":80},"language-ts shiki shiki-themes github-light github-dark github-dark","type AsyncState\u003CData, Empty = null> = {\n  status: \"idle\" | \"loading\" | \"success\" | \"error\";\n  data: Data | Empty;\n  error: unknown | null;\n  isLoading: boolean;\n};\n","ts","",[82,83,84,126,159,177,194,207],"code",{"__ignoreMap":80},[85,86,89,93,97,101,104,107,110,113,117,120,123],"span",{"class":87,"line":88},"line",1,[85,90,92],{"class":91},"so5gQ","type",[85,94,96],{"class":95},"shcOC"," AsyncState",[85,98,100],{"class":99},"slsVL","\u003C",[85,102,103],{"class":95},"Data",[85,105,106],{"class":99},", ",[85,108,109],{"class":95},"Empty",[85,111,112],{"class":91}," =",[85,114,116],{"class":115},"suiK_"," null",[85,118,119],{"class":99},"> ",[85,121,122],{"class":91},"=",[85,124,125],{"class":99}," {\n",[85,127,129,133,136,140,143,146,148,151,153,156],{"class":87,"line":128},2,[85,130,132],{"class":131},"sQHwn","  status",[85,134,135],{"class":91},":",[85,137,139],{"class":138},"sfrk1"," \"idle\"",[85,141,142],{"class":91}," |",[85,144,145],{"class":138}," \"loading\"",[85,147,142],{"class":91},[85,149,150],{"class":138}," \"success\"",[85,152,142],{"class":91},[85,154,155],{"class":138}," \"error\"",[85,157,158],{"class":99},";\n",[85,160,162,165,167,170,172,175],{"class":87,"line":161},3,[85,163,164],{"class":131},"  data",[85,166,135],{"class":91},[85,168,169],{"class":95}," Data",[85,171,142],{"class":91},[85,173,174],{"class":95}," Empty",[85,176,158],{"class":99},[85,178,180,183,185,188,190,192],{"class":87,"line":179},4,[85,181,182],{"class":131},"  error",[85,184,135],{"class":91},[85,186,187],{"class":115}," unknown",[85,189,142],{"class":91},[85,191,116],{"class":115},[85,193,158],{"class":99},[85,195,197,200,202,205],{"class":87,"line":196},5,[85,198,199],{"class":131},"  isLoading",[85,201,135],{"class":91},[85,203,204],{"class":115}," boolean",[85,206,158],{"class":99},[85,208,210],{"class":87,"line":209},6,[85,211,212],{"class":99},"};\n",[71,214,215,216,219],{},"The fields are deliberately separate. A request can keep useful data while reporting an error, and ",[82,217,218],{},"isLoading"," can remain true while another concurrent request completes.",[221,222,224],"h2",{"id":223},"lifecycle","Lifecycle",[226,227,228,252],"table",{},[229,230,231],"thead",{},[232,233,234,238,243,248],"tr",{},[235,236,237],"th",{},"Event",[235,239,240],{},[82,241,242],{},"status",[235,244,245],{},[82,246,247],{},"error",[235,249,250],{},[82,251,218],{},[253,254,255,276,295,312,326],"tbody",{},[232,256,257,261,266,271],{},[258,259,260],"td",{},"Created or reset",[258,262,263],{},[82,264,265],{},"idle",[258,267,268],{},[82,269,270],{},"null",[258,272,273],{},[82,274,275],{},"false",[232,277,278,281,286,290],{},[258,279,280],{},"Execute",[258,282,283],{},[82,284,285],{},"loading",[258,287,288],{},[82,289,270],{},[258,291,292],{},[82,293,294],{},"true",[232,296,297,300,305,309],{},[258,298,299],{},"Resolve",[258,301,302],{},[82,303,304],{},"success",[258,306,307],{},[82,308,270],{},[258,310,311],{},"Depends on active requests",[232,313,314,317,321,324],{},[258,315,316],{},"Reject",[258,318,319],{},[82,320,247],{},[258,322,323],{},"Rejection value",[258,325,311],{},[232,327,328,331,335,339],{},[258,329,330],{},"Abort",[258,332,333],{},[82,334,265],{},[258,336,337],{},[82,338,270],{},[258,340,341],{},[82,342,275],{},[71,344,345,346,349],{},"By default, failures preserve the previous data. Use ",[82,347,348],{},"dataOnError"," when a failure should replace it:",[75,351,353],{"className":77,"code":352,"language":79,"meta":80,"style":80},"const operation = createAsync(loadItems, {\n  initialData: [],\n  dataOnError: () => [],\n});\n",[82,354,355,371,376,390],{"__ignoreMap":80},[85,356,357,360,363,365,368],{"class":87,"line":88},[85,358,359],{"class":91},"const",[85,361,362],{"class":115}," operation",[85,364,112],{"class":91},[85,366,367],{"class":95}," createAsync",[85,369,370],{"class":99},"(loadItems, {\n",[85,372,373],{"class":87,"line":128},[85,374,375],{"class":99},"  initialData: [],\n",[85,377,378,381,384,387],{"class":87,"line":161},[85,379,380],{"class":95},"  dataOnError",[85,382,383],{"class":99},": () ",[85,385,386],{"class":91},"=>",[85,388,389],{"class":99}," [],\n",[85,391,392],{"class":87,"line":179},[85,393,394],{"class":99},"});\n",[221,396,398],{"id":397},"immutable-snapshots","Immutable snapshots",[71,400,401],{},"Snapshots are frozen and replaced as a unit. Consumers can safely compare snapshot references, while adapters can expose each field through their native reactive APIs.",[403,404,405],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sQHwn, html code.shiki .sQHwn{--shiki-light:#E36209;--shiki-default:#FFAB70;--shiki-dark:#FFAB70}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}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":80,"searchDepth":128,"depth":128,"links":407},[408,409],{"id":223,"depth":128,"text":224},{"id":397,"depth":128,"text":398},"md",{},{},{"title":16,"description":80},"00Cv0G29bulbDClnsrejO6cG4NVulrNzBjV-6dI-7aE",[416,417],{"title":12,"path":13,"stem":14,"description":80,"icon":10,"children":-1},{"title":22,"path":23,"stem":24,"description":80,"children":-1},1786006625352]