@plasmicapp/react-web
Advanced tools
Comparing version 0.2.19 to 0.2.20
@@ -27,2 +27,3 @@ "use strict"; | ||
var react_dom_1 = __importDefault(require("react-dom")); | ||
var react_utils_1 = require("./react-utils"); | ||
var listeners = []; | ||
@@ -66,3 +67,3 @@ var queries = {}; | ||
// listener will be registered in time | ||
React.useLayoutEffect(function () { | ||
react_utils_1.useIsomorphicLayoutEffect(function () { | ||
var forceUpdate = function () { return updateState({}); }; | ||
@@ -69,0 +70,0 @@ listeners.push(forceUpdate); |
@@ -380,3 +380,5 @@ "use strict"; | ||
function PlasmicLink(props) { | ||
if (props.platform === "nextjs") { | ||
// props.href is required for nextjs; if no props.href, | ||
// then we just render the default anchor element | ||
if (props.platform === "nextjs" && props.href) { | ||
var nextjsProps = [ | ||
@@ -383,0 +385,0 @@ "href", |
{ | ||
"name": "@plasmicapp/react-web", | ||
"version": "0.2.19", | ||
"version": "0.2.20", | ||
"description": "plasmic library for rendering in the presentational style", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
49585
21366
12
1120
7
47