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

Update editor content on URL hash code changes #190

Open
rbardini opened this issue Sep 14, 2020 · 0 comments
Open

Update editor content on URL hash code changes #190

rbardini opened this issue Sep 14, 2020 · 0 comments

Comments

@rbardini
Copy link
Contributor

I'm the maintainer of Storybook Playroom Addon, which basically serializes the JSX of rendered stories, then renders Playroom in an iframe with the encoded string in the URL. However, since hash changes don't trigger UI updates, I have to recreate the iframe and completely reload Playroom whenever the value changes (e.g. on story change), a very expensive and slow operation.

It would be useful to update the editor content (i.e. the code, and therefore the preview) on URL hash code changes, allowing instrumentation of Playroom's UI by external tools.

Relates to rbardini/storybook-addon-playroom#2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant