-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Okay, sorry about this, but I have decided to release a breaking change. That being said I think it's unlikely to affect many people. I've realised that I may be causing some confusion by always providing width/height values even if you aren't monitoring one of the dimensions. If you mistakenly rely on a dimension that isn't being monitored this may lead to gremlins in your code. Therefore I have decided to provide `null` values for any dimension that is not being monitored. By default we only monitor width, therefore if you would like to get values for height change the configuration for your SizeMe HOC to: `SizeMe({ monitorHeight: true })(YourComponent);` BREAKING CHANGE: Okay, sorry about this, but I have decided to release a breaking change. That being said I think it's unlikely to affect many people. I've realised that I may be causing some confusion by always providing width/height values even if you aren't monitoring one of the dimensions. If you mistakenly rely on a dimension that isn't being monitored this may lead to gremlins in your code. Therefore I have decided to provide `null` values for any dimension that is not being monitored. By default we only monitor width, therefore if you would like to get values for height change the configuration for your SizeMe HOC to: `SizeMe({ monitorHeight: true })(YourComponent);`
- Loading branch information
Showing
3 changed files
with
84 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters