Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Add support for editor-only visibility #55

@AndrewPrifer

Description

@AndrewPrifer

I have 2 ideas:

  1. extend the visibility prop of objects to also accept an "editor-only" string. This will ultimately set the object's visibility to false, unless we are in the editor
  2. a separate editorOnly: boolean prop
    This has come up enough times in my own projects too to warrant a bespoke solution
    The first one is simpler/makes more sense to me, but might be less intuitive/discoverable because it modifies an existing API

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions