Skip to content

fix(stub): rename prefix prop to avoid warning on render #2067

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

Closed
wants to merge 2 commits into from

Conversation

freakzlike
Copy link
Collaborator

@freakzlike freakzlike commented May 19, 2023

My only solution currently would be to rename the prefix property on render to _prefix for example. Not nice but this would only affect the .html() output .props('prefix') would still work.

In case we decide to use this solution, then I would add something to the docs

Fix #2035

@netlify
Copy link

netlify bot commented May 19, 2023

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 19a1dfe
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/64672dd8a3d85f000721871f
😎 Deploy Preview https://deploy-preview-2067--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@freakzlike freakzlike requested review from cexbrayat and xanf May 19, 2023 08:06
@freakzlike freakzlike changed the title Reproduction for #2035 fix(stub): rename prefix prop to avoid warning on render May 19, 2023
@freakzlike freakzlike marked this pull request as ready for review May 19, 2023 08:06
@freakzlike freakzlike requested a review from lmiller1990 May 19, 2023 08:07
@freakzlike
Copy link
Collaborator Author

freakzlike commented May 19, 2023

I just saw this issue #1995 which is exactly the same one like this with attributes. Therefore we can also drop this, but I would add some things to docs

@cexbrayat
Copy link
Member

Yeah, I think this is not worth it, as it is going to happen for all components that use a prop named as an attribute.
Let's drop this, and maybe add something in the docs

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.

Bug: Failed setting prop "prefix" on [component]
2 participants