We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.21
Repo: github.com Example: https://confident-agnesi-a384b9.netlify.app/
defineProps
defineProps<{ checked?: boolean }>()
<Child checked />
The child component should be rendered with the prop defined as true. The correct behavior occurs in development mode.
true
The prop is defined as an empty string and interpreted as false
false
It looks like the minified code is not matching what is described in the documentation
In prod mode, the compiler will generate the array format declaration to reduce bundle size (the props here will be compiled into ['foo', 'bar'])
['foo', 'bar']
But looking at the dist files, I see props:{checked:null}
props:{checked:null}
The text was updated successfully, but these errors were encountered:
Closing, looks like a duplicate of #4783 and I expect will be fixed with the next patch release.
Sorry, something went wrong.
No branches or pull requests
Version
3.2.21
Reproduction link
Repo: github.com
Example: https://confident-agnesi-a384b9.netlify.app/
Steps to reproduce
defineProps
syntax.What is expected?
The child component should be rendered with the prop defined as
true
. The correct behavior occurs in development mode.What is actually happening?
The prop is defined as an empty string and interpreted as
false
It looks like the minified code is not matching what is described in the documentation
But looking at the dist files, I see
props:{checked:null}
The text was updated successfully, but these errors were encountered: