ui/admin_accounts_state.svelte.ts view source
{ get: (error_message?: string | undefined) => () => AdminAccountsRpc; get_maybe: () => (() => AdminAccountsRpc) | undefined; set: (value: () => AdminAccountsRpc) => () => AdminAccountsRpc; } import {admin_accounts_rpc_context} from '@fuzdev/fuz_app/ui/admin_accounts_state.svelte.js'; Svelte context carrying the reactive AdminAccountsRpc accessor. The
provisioner (typically the admin route shell) calls set(() => rpc);
consumers read with const get_rpc = admin_accounts_rpc_context.get();
and either pass the accessor straight to AdminAccountsState/
AdminSessionsState or wrap it with const rpc = $derived(get_rpc());
for direct RPC calls. get() throws when no provisioner ran above the
component — the adapter is required, not optional.