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

Addon-Docs: Do not create extra Vue instance for Dynamic source rendering #14002

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

pocka
Copy link
Contributor

@pocka pocka commented Feb 22, 2021

Issue: #13633 (already closed though)

Reduce the amount of the work for #13862
Probably related to #13697 and #13721 (hopefully this patch will fix them)

What I did

Removed new Vue in source decorator, Added decorator component that renders story source code based on VNode.

How to test

  • Is this testable with Jest or Chromatic screenshots? ... No
  • Does this need a new example in the kitchen sink apps? ... No
  • Does this need an update to the documentation? ... No

If your answer is yes to any of these, please make sure to include it in your PR.

Copy link
Contributor

@phated phated left a comment

Choose a reason for hiding this comment

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

Trying to re-run the yarn pnp e2e tests, but otherwise this seems to make sense to me.

@phated
Copy link
Contributor

phated commented Feb 23, 2021

Unsure why the e2e-tests-yarn-2-pnp are still failing 🤔

This commit changes how the decorator grab Vue.js' VNode tree.
Previously it creates a new Vue instance and traverse the tree.
But this causes a lot of problems such as unexpected mount call and
DOM-detached instance. I removed the instruction then added a decorator
that do the instruction from inside of an existing VNode tree.
@pocka pocka force-pushed the pocka/feat/dynamic-source-rendering-use-render-tree branch from a15f433 to 85f2a43 Compare February 24, 2021 01:31
@pocka
Copy link
Contributor Author

pocka commented Feb 24, 2021

CI has been failing for some time span (?). I git rebase next-ed on the branch and force-pushed it.

@shilman shilman changed the title Addon-Docs: Do not create additional Vue instance for Dynamic source rendering Addon-Docs: Do not create extra Vue instance for Dynamic source rendering Feb 24, 2021
@shilman shilman merged commit 74f68a0 into next Feb 24, 2021
@shilman shilman deleted the pocka/feat/dynamic-source-rendering-use-render-tree branch February 24, 2021 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants