Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/blocks/engine/schema/lazy.ts>lazySchemaFor

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
variable lazySchemaFor
import { lazySchemaFor } from "https://deno.land/x/blocks@1.102.4/engine/schema/lazy.ts";

This function is responsible for creating a lazy schema that will be used in the runtime. It will create a single flight to avoid multiple calls to the schema generation and will also cache the schema based on the revision. It uses a weak map that guarantees that when ctx is garbage collected so schema will as well.

type

(ctx: Omit<DecoContext, "schema">) => LazySchema