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

Completely avoid re-rendering the preview iframe #631

Merged
merged 1 commit into from
Nov 28, 2016

Conversation

roonyh
Copy link
Contributor

@roonyh roonyh commented Nov 28, 2016

When manager re-rendered there is a chance that this component is rerendered. That makes the iframe to load again. So the complete story is re-mounted.

This is not preferred except when changing stories.

The case of changing stories is anyway handled by communicating through the channel. So we don't need to rerender the Preview component at all.

When manager re-rendered there is a chance that this component is
rerendered. That makes the iframe to load again. So the complete story
is remounted. This is not preferred except when changing stories.
@roonyh roonyh force-pushed the avoid-re-rendering-preview branch from d57d124 to 039db5c Compare November 28, 2016 08:38
@arunoda arunoda merged commit ceebfc5 into master Nov 28, 2016
@arunoda arunoda deleted the avoid-re-rendering-preview branch November 28, 2016 08:57
@arunoda
Copy link
Member

arunoda commented Nov 28, 2016

Superb.

@shilman shilman added the misc label May 27, 2017
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

Successfully merging this pull request may close these issues.

3 participants