PageSourceSearch

https://graphdl.org/_next/static/chunks/pages/Nouns/State-f81fc90e8cf2ca52.js

js graphdl.org collected 2026-10-05 06:33:23 UTC 5,044 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8959],{44975:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Nouns/State",function(){return n(22971)}])},22971:function(e,s,n){"use strict";n.r(s);var t=n(85893),r=n(48863),i=n(11151);function l(e){let s=Object.assign({h1:"h1",p:"p",code:"code",pre:"pre",span:"span",a:"a"},(0,i.ah)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{children:"State"}),"\n",(0,t.jsxs)(s.p,{children:["The ",(0,t.jsx)(s.code,{children:"_state"})," property on a Noun represents a Finite State Machine while the ",(0,t.jsx)(s.code,{children:"state"})," of a Resource is it's current State."]}),"\n",(0,t.jsx)(s.pre,{"data-language":"yaml","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"yaml","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Switch"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"_state"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"initial"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"inactive"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"states"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"      "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"inactive"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"        "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"on"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"          "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toggle"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"active"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"      "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"active"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"        "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"on"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"          "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"toggle"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:":"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:"inactive"})]})]})}),"\n",(0,t.jsxs)(s.p,{children:["The syntax of ",(0,t.jsx)(s.code,{children:"_state"})," is compatible with ",(0,t.jsx)(s.a,{href:"https://xstate.js.org",children:"XState"})," and can be ",(0,t.jsx)(s.a,{href:"https://stately.ai/viz",children:"visualized"})," and\n",(0,t.jsx)(s.a,{href:"https://stately.ai/registry/new",children:"edited"})," with ",(0,t.jsx)(s.a,{href:"https://stately.ai",children:"Stately"})]})]})}n(25675),s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,i.ah)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(l,{...e})}):l(e)},pageOpts:{filePath:"pages/Nouns/State.mdx",route:"/Nouns/State",headings:[{depth:1,value:"State",id:"state"}],timestamp:1678620703e3,title:"State"},pageNextRoute:"/Nouns/State"})}},function(e){e.O(0,[8863,9774,2888,179],function(){return e(e.s=44975)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.