Websites v4 docs v5.2.4
    Preparing search index...

    Interface UseSectionVariantControlResult

    interface UseSectionVariantControlResult {
        regenerateForVariant: (variant: string) => boolean;
    }
    Index

    Properties

    regenerateForVariant: (variant: string) => boolean

    If the given variant has a variantInitialConfig generator and the current agency owns the page, replaces the selected section's configuration with freshly generated defaults for that variant and returns true. Otherwise makes no change and returns false, leaving the caller to update the variant field in the normal way.