Skip to content

Option to Disable Tagging & Revalidation in defineLive #2541

@tstikvoort

Description

@tstikvoort

defineLive is a convenient way to implement automatic reloading in visual editing or presentation mode. However, it currently enforces automatic tagging and revalidation, with no way to disable these features. I only want to you use the live content api to facilitate content preview in presentation mode.

While @sanity/react-loader offers more control, defineLive is simpler to set up. It would be helpful if defineLive accepted options to disable tagging and/or revalidation. Alternatively, a helper function like defineLivePreview doing this would also be a great option!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions