Enode — API Reference
    Preparing search index...
    • Hosts the redirect-resolution surfaces, driven by the global action-dialog store. Mount once in each app's root layout. When apiRequest hits a 310/311/312 it opens the matching surface here; resolving/cancelling settles the store promise so the original request resumes (resolved) or fails (cancelled).

      310/312 are bottom-sheet dialogs; 311 is a full-screen onboarding page. These are kept mounted with a toggled open so they can animate; each decodes its body defensively, so the brief null body during a close transition is harmless.

      426 (upgrade required → update-app) shows UpdateAppScreen: a full-screen, never-dismissable surface rendered ALONE (no other surface is mounted while it shows). It never resolves the action — the 426'd requests stay held (same-kind requests coalesce onto that one entry), and the app underneath keeps running offline-first until the user updates or reloads.

      Parameters

      • flavor: { flavor?: AppFlavor } = {}

        Only steers the 426 web title ("Reload enode Portal" vs "Update enode Pro"); defaults to pro_app on native and portal on the web.

      Returns Element

      Resolution must stay synchronous with the store. Anything awaited here before resolveAction deadlocks: the awaited request would 310/311/312 itself, coalesce onto the entry still sitting at the head of the queue (action-dialog-store.ts), and wait for the resolveAction that is waiting on it. Post-resolution checks belong in the auth flow — see verifyAppAccess in @enode/core/auth/app-access.