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 try to use react dimensions with redux but got an error:
vendor.js:151117 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? Check the render method of DimensionsHOC. in ConnectFunction (created by DimensionsHOC) in div (created by DimensionsHOC) in DimensionsHOC in Provider
vendor.js:151117 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of DimensionsHOC. in ConnectFunction (created by DimensionsHOC) in div (created by DimensionsHOC) in DimensionsHOC in Provider
DimensionsHOC
My versions:
"react-dimensions": "^1.3.0", "react": "^16.8.6", "redux": "^4.0.1",
My code:
.... import Dimensions from 'react-dimensions'; .... export default Dimensions({ getHeight: function(element) { return window.innerHeight - 200; }, getWidth: function(element) { let widthOffset = window.innerWidth < 1280 ? 70 : 55; return window.innerWidth - widthOffset; } })(connect(mapStateToProps, mapDispatchToProps)(MyComponent));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, i try to use react dimensions with redux but got an error:
My versions:
"react-dimensions": "^1.3.0",
"react": "^16.8.6",
"redux": "^4.0.1",
My code:
The text was updated successfully, but these errors were encountered: