Currently it is not possible due to a bug to configure the throttle which is uses to delay the rerender of react when the browser window size changes. The default value is 200ms.
It is supposed to be possible to configure the throttle by using the SizesProvider provider component. This provider however stores the config under this.context['_ReactSizesConfig_'].throttle and not directly under this.context.throttle. This merge request fixes this.
Tested by setting up a react app which uses the SizesProvider to configure the throttle. The app simple prints the current width/height into a div
Currently it is not possible due to a bug to configure the throttle which is uses to delay the rerender of react when the browser window size changes. The default value is 200ms.
It is supposed to be possible to configure the throttle by using the
SizesProvider
provider component. This provider however stores the config underthis.context['_ReactSizesConfig_'].throttle
and not directly underthis.context.throttle
. This merge request fixes this.Tested by setting up a react app which uses the
SizesProvider
to configure the throttle. The app simple prints the current width/height into a divSee issue https://github.com/renatorib/react-sizes/issues/27 for more details about the bug