fix: prop value is symbol and invalid type throw error in dev#7809
Closed
virgosoy wants to merge 1 commit into
Closed
fix: prop value is symbol and invalid type throw error in dev#7809virgosoy wants to merge 1 commit into
virgosoy wants to merge 1 commit into
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
|
@sodatea I think this should be reopened, I believe you misunderstood the author's intent. The type mismatch on the prop was intentional. The problem being fixed here is that the warning message isn't generated correctly. |
Member
|
Oops. Sorry. Reopened. |
Contributor
|
#8539 seems to be a similar idea. |
Member
|
Duplicate of #8539 |
Member
|
Closing in favor of #8539, which covers the full prop validation Symbol case: it guards Symbol before String/Number coercion and avoids adding coercion-style value details for Symbol warnings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #8487
Prod env can work but dev doesn't work.
Live Demo:
https://sfc.vuejs.org/#__DEV__eNp9Uk1PwzAM/Ssml20SawXcqm4IceGChMSBSy7d6o2ifClOC2jqf8dJP4ZAWlVFec7Lc/zsk3hwLutaFIUoae8bF7bSNNpZH+D5+9FqBwdvNSyyfICRvJgpJ2joYUdoAvQzcQplgZiJX4lZ46FqFd+QBmDPQtYwhYohAGOyuO+v41pXoVquplOPofVmQgCajgUsnlApC2/Wq/pqkW7Fb0o/4D5JSsN/mc8VMgionaoCMgIo32+2p1OUhb4vc0YpOjpQdJVqcSPFLC225ejHQGyMawN0a21rVExkIebElHMacS0G09a6ctkHWcOep4JYNx2QFLMdUrDPEUvxHoKjIs/psI/mf1Bm/THnXeZbExqNGZJe77z9JPQsLMVoRdLIOdihX3s0NXr0lzT/UP/pTlZyKedhOE8OEHfJgarMkS2I5bADe2sogPPWEWziFDQGXyIqU6XJ2fsCKPjGHFl7u1xd6JQMZd10yXOAm9u7YcOdSzrcu9SNfOD8Ml+aaP95LvnR41wO75uneAOv33pn1XIl+h+DFQ92