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

Detect and warn about unrecognized keys in options param #21

Open
uniphil opened this issue Jun 5, 2016 · 0 comments
Open

Detect and warn about unrecognized keys in options param #21

uniphil opened this issue Jun 5, 2016 · 0 comments

Comments

@uniphil
Copy link
Collaborator

uniphil commented Jun 5, 2016

The component (soon to be called Spindle) function takes an object as the second parameter, that lets you pass in all the mostly-optional stuff that makes up your component. Right now it's doing fancy parameter destructuring, but that means that misspelled option keys will be silent errors.

In dev, it would be better to just take in the object, and run though the keys we recognize, warning about keys we don't.

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

No branches or pull requests

1 participant