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
Hi,
I've been struggling with the onChange callback. The break point detection works fine but the function I pass to onChange is never called.
onChange
I use the following code:
function logOnChange() { console.log("changed"); } function App() { return ( <Media query={{ maxWidth: 500 }} onChange={logOnChange}> {matches => (matches ? <p>Small</p> : <p>Large</p>)} </Media> ); }
I've created a Codesandbox to illustrate the issue: https://codesandbox.io/s/5v82oypykl
Am I doing something wrong or is this broken?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hey, the current changes in master haven't been deployed to npm yet. Please follow #98 for progress updates.
Sorry, something went wrong.
I am facing the same issue
No branches or pull requests
Hi,
I've been struggling with the
onChange
callback. The break point detection works fine but the function I pass toonChange
is never called.I use the following code:
I've created a Codesandbox to illustrate the issue:
https://codesandbox.io/s/5v82oypykl
Am I doing something wrong or is this broken?
Thanks in advance!
The text was updated successfully, but these errors were encountered: