@plasmicapp/react-web
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -61,3 +61,7 @@ "use strict"; | ||
var _a = React.useState(), updateState = _a[1]; | ||
React.useEffect(function () { | ||
// We do useLayoutEffect instead of useEffect to immediately | ||
// register our forceUpdate. This ensures that if there was | ||
// a window resize event between render and effects, that the | ||
// listener will be registered in time | ||
React.useLayoutEffect(function () { | ||
var forceUpdate = function () { return updateState({}); }; | ||
@@ -64,0 +68,0 @@ listeners.push(forceUpdate); |
{ | ||
"name": "@plasmicapp/react-web", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"description": "plasmic library for rendering in the presentational style", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
48748
10
1103