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

UI: Don't emit storyChange event when viewmode not renderable by preview #10838

Merged
merged 1 commit into from
May 19, 2020

Conversation

ndelangen
Copy link
Member

Issue: #10551

What I did

Added a filter, so the event is only emitted if the viewMode matches /(story|docs)/.

@ndelangen ndelangen added this to the 6.0 milestone May 19, 2020
@ndelangen ndelangen self-assigned this May 19, 2020
@ndelangen ndelangen requested a review from shilman May 19, 2020 12:26
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFM!

@shilman shilman changed the title Do not emit storyChange event, when viewmode is not renderable by preview UI: Do't emit storyChange event when viewmode not renderable by preview May 19, 2020
@shilman shilman changed the title UI: Do't emit storyChange event when viewmode not renderable by preview UI: Don't emit storyChange event when viewmode not renderable by preview May 19, 2020
@shilman shilman merged commit 43448a7 into next May 19, 2020
@ndelangen ndelangen deleted the fix/not-emit-when-viewmode-incompatible branch May 19, 2020 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants