1"use strict";(globalThis.webpackChunk_reactive_dot_docs=globalThis.webpackChunk_reactive_dot_docs||[]).push([[9590],{1184:(e,n,c)=>{c.d(n,{R:()=>d,x:()=>i});var s=c(4041);const t={},r=s.createContext(t);function d(e){const n=s.useContext(r);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(r.Provider,{value:n},e.children)}},8306:(e,n,c)=>{c.r(n),c.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>l,frontMatter:()=>d,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"api/core/index/functions/whenAccountsChanged","title":"whenAccountsChanged()","description":"Defined in17","source":"@site/vue/api/core/index/functions/whenAccountsChanged.md","sourceDirName":"api/core/index/functions","slug":"/api/core/index/functions/whenAccountsChanged","permalink":"/vue/api/core/index/functions/whenAccountsChanged","draft":false,"unlisted":false,"editUrl":"https://github.com/buffed-labs/reactive-dot/tree/main/apps/docs/vue/api/core/index/functions/whenAccountsChanged.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"unsafeDescriptor()","permalink":"/vue/api/core/index/functions/unsafeDescriptor"},"next":{"title":"whenClientChanged()","permalink":"/vue/api/core/index/functions/whenClientChanged"}}');var t=c(1085),r=c(1184);const d={},i="whenAccountsChanged()",a={},o=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2}];function h(e){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"whenaccountschanged",children:"whenAccountsChanged()"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"function whenAccountsChanged<TConfig>(config, options?): Observable<WalletAccount[]>;\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Defined in: ",(0,t.jsx)(n.a,{href:"https://github.com/buffed-labs/reactive-dot/blob/29250031730b53db65d25af9ec86f69ebb60371f/packages/core/src/apis/when-accounts-changed.ts#L17",children:"packages/core/src/apis/when-accounts-changed.ts:17"})]}),"\n",(0,t.jsx)(n.p,{children:"Subscribe to accounts changes."}),"\n",(0,t.jsx)(n.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsx)(n.tr,{children:(0,t.jsx)(n.th,{children:"Type Parameter"})})}),(0,t.jsx)(n.tbody,{children:(0,t.jsx)(n.tr,{children:(0,t.jsxs)(n.td,{children:[(0,t.jsx)(n.code,{children:"TConfig"})," ",(0,t.jsx)(n.em,{children:"extends"})," ",(0,t.jsx)(n.a,{href:"/vue/api/core/index/type-aliases/Config",children:(0,t.jsx)(n.code,{children:"Config"})})]})})})]}),"\n",(0,t.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Parameter"}),(0,t.jsx)(n.th,{children:"Type"}),(0,t.jsx)(n.th,{children:"Description"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"config"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"TConfig"})}),(0,t.jsx)(n.td,{children:"The configuration"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"options?"})}),(0,t.jsxs)(n.td,{children:["{ ",(0,t.jsx)(n.code,{children:"chainId?"}),": keyof ",(0,t.jsx)(n.code,{children:"TConfig"}),"[",(0,t.jsx)(n.code,{children:'"chains"'}),"]; ",(0,t.jsx)(n.code,{children:"chainSpec?"}),": ",(0,t.jsx)(n.code,{children:"MaybeAsync"}),"<",(0,t.jsx)(n.code,{children:"ChainSpecData"}),">; }"]}),(0,t.jsx)(n.td,{children:"Additional options"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"options.chainId?"})}),(0,t.jsxs)(n.td,{children:["keyof ",(0,t.jsx)(n.code,{children:"TConfig"}),"[",(0,t.jsx)(n.code,{children:'"chains"'}),"]"]}),(0,t.jsx)(n.td,{children:"-"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"options.chainSpec?"})}),(0,t.jsxs)(n.td,{children:[(0,t.jsx)(n.code,{children:"MaybeAsync"}),"<",(0,t.jsx)(n.code,{children:"ChainSpecData"}),">"]}),(0,t.jsx)(n.td,{children:"-"})]})]})]}),"\n",(0,t.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Observable"}),"<",(0,t.jsx)(n.a,{href:"/vue/api/core/wallets/type-aliases/WalletAccount",children:(0,t.jsx)(n.code,{children:"WalletAccount"})}),"[]>"]}),"\n",(0,t.jsx)(n.p,{children:"The currently connected accounts observable"})]})}function l(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}}}]);
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.