@builderx/bridge
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -391,6 +391,6 @@ "use strict"; | ||
var _a, _b; | ||
return (element.type === fiberNode.type && | ||
element.key === fiberNode.key && | ||
((_a = element.props) === null || _a === void 0 ? void 0 : _a['data-path']) === | ||
((_b = fiberNode.memoizedProps) === null || _b === void 0 ? void 0 : _b['data-path'])); | ||
if (typeof element === 'string') { | ||
return (fiberNode === null || fiberNode === void 0 ? void 0 : fiberNode.memoizedProps) === element; | ||
} | ||
return (((_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a['data-path']) === ((_b = fiberNode === null || fiberNode === void 0 ? void 0 : fiberNode.memoizedProps) === null || _b === void 0 ? void 0 : _b['data-path'])); | ||
}; | ||
@@ -397,0 +397,0 @@ // Check if propsChildren is an array or a single child |
{ | ||
"name": "@builderx/bridge", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -500,7 +500,8 @@ declare global { | ||
const compareElementToFiber = (element: any, fiberNode: any) => { | ||
if (typeof element === 'string') { | ||
return fiberNode?.memoizedProps === element; | ||
} | ||
return ( | ||
element.type === fiberNode.type && | ||
element.key === fiberNode.key && | ||
element.props?.['data-path'] === | ||
fiberNode.memoizedProps?.['data-path'] | ||
element?.props?.['data-path'] === fiberNode?.memoizedProps?.['data-path'] | ||
); | ||
@@ -507,0 +508,0 @@ }; |
Sorry, the diff of this file is not supported yet
82580