Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/blocks/engine/releases/supabaseProvider.ts>SupabaseReleaseProvider

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
interface SupabaseReleaseProvider
import { type SupabaseReleaseProvider } from "https://deno.land/x/blocks@1.28.0-beta.4/engine/releases/supabaseProvider.ts";

Methods

get(includeArchived: boolean): PromiseLike<{ data: CurrResolvables | null; error: any; }>
subscribe(onChange: (arg: CurrResolvables) => void, cb: (status: `${supabase.REALTIME_SUBSCRIBE_STATES}`, err?: Error) => void): void

When called, receives the onChange function that will be called when the release has changed, and the cb function that will be called when the subscription state change. The cb function can be used to determine if it should fallsback to background updates or not.