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

Add support for editor-only visibility #55

Open
AndrewPrifer opened this issue Dec 13, 2020 · 0 comments
Open

Add support for editor-only visibility #55

AndrewPrifer opened this issue Dec 13, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@AndrewPrifer
Copy link
Owner

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
@AndrewPrifer AndrewPrifer added the enhancement New feature or request label Dec 13, 2020
@AndrewPrifer AndrewPrifer changed the title Add support for editor-only objects Add support for editor-only visibility Dec 13, 2020
AndrewPrifer added a commit that referenced this issue Dec 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant