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

Incorrect dev warning with export function named() {} #3954

Closed
rixo opened this issue Nov 19, 2019 · 0 comments · Fixed by #3984
Closed

Incorrect dev warning with export function named() {} #3954

rixo opened this issue Nov 19, 2019 · 0 comments · Fixed by #3984
Labels

Comments

@rixo
Copy link
Contributor

rixo commented Nov 19, 2019

Describe the bug

In dev mode, when a component exports a named function with the function keyword, then a warning "created without expected prop XXX" is issued in the browser console.

Example:

<script>
  export function propOrNot() {}
</script>

Logs

WARNING <Child> was created without expected prop 'propOrNot'

To Reproduce

REPL

Expected behavior

No warning.

Severity

To me, zero... But I guess the fix is probably trivial. And maybe the incorrect state that leads to the warning might also be a cause for more annoying bugs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants