API reference › @evolu/svelte › appOwnerState
function appOwnerState<Schema>(evolu: Evolu<Schema>): {
current: AppOwner | undefined;
};
Defined in: index.svelte.ts:137
Get the AppOwner promise that resolves when available.
Example
import { appOwnerState } from "@evolu/svelte";
const owner = appOwnerState(evolu);
// use owner.current in your Svelte templates
// it will be undefined initially and set once the promise resolves