Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit in CodeSandbox button #6

Open
avocadowastaken opened this issue Nov 22, 2019 · 2 comments
Open

Edit in CodeSandbox button #6

avocadowastaken opened this issue Nov 22, 2019 · 2 comments
Labels
Ported from main repo Old feature ideas ported from react-cosmos repository

Comments

@avocadowastaken
Copy link

What's up?

React-Cosmos already has an Open fixture button in dev mode, but this functionality is missed in production.

Mkay, tell me more...

I've implemented this using babel plugin with cosmos decorator already: superdispatch/web-ui#32. It's fine for now, but it's hacky and can break after internal changes in react-cosmos.

@ovidiuch
Copy link
Member

Impressive 🤔.

This is a good use case for a React Cosmos plugin. Unfortunately it's too early for me to prepare and document the new plugin API, and I don't want to send you down dark alleys because the current undocumented plugin API will possibly change even if you manage to understand it on your own.

But I will get back to you once the time is right. Hopefully you'll still be interested. Thanks for sharing!

@jamiebuilds
Copy link

There is already a tool called codesandboxer that does this (See Docs)

You can see it in action on the Atlaskit website (Up in the top-right corner with the CodeSandbox logo).

@ovidiuch ovidiuch transferred this issue from react-cosmos/react-cosmos Jan 13, 2020
@ovidiuch ovidiuch added the Ported from main repo Old feature ideas ported from react-cosmos repository label Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ported from main repo Old feature ideas ported from react-cosmos repository
Projects
None yet
Development

No branches or pull requests

3 participants