-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
fix usage of idiomatic react props #10
Conversation
Can you provide an example of where it was breaking? |
@contra how exactly should I do this? would you like to see how I'm using is in my code? |
@ChrisSki The code that was not working. I don't think I'm understanding what the problem was |
I'll do my best to explain. The following works:
The following does not work:
I tried debugging the code and found that when I removed the I attempted other properties that are listed in |
I think the real issue is https://github.com/ChrisSki/react-responsive/blob/idiomatic/src/index.js#L18 needs to be changed to |
Looking at it again, I think you're correct. Would you like to fix it or would you like me to submit another PR? |
Another PR or updating this one would be fine |
change excludedQueryKeys to accept defaultTypes
@contra what was actually happening was the |
fix usage of idiomatic react props
I think line 49
this.query = toQuery(omit(props, excludedQueryKeys));
was excluding the idiomatic props from being used intoQuery
. I was gettingInvalid or missing MediaQuery!
when not using the query string.