Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed typo
  • Loading branch information
minovap committed Apr 20, 2016
commit b5a4ce77ba3d4fecfe17314dedd4464f5db98b31
2 changes: 1 addition & 1 deletion src/client/ui/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function renderMain(data) {
}

// Unmount the previous story only if selectedKind or selectedStory has changed.
// renderMain() gets executed after each action. Actions will cause the whole store to re-render without this check.
// renderMain() gets executed after each action. Actions will cause the whole story to re-render without this check.
// https://github.com/kadirahq/react-storybook/issues/116
if (selectedKind !== previousKind || previousStory !== selectedStory) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add a comment on why we do this and add the link to the related issue.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment added

// We need to unmount the existing set of components in the DOM node.
Expand Down