Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 917a4b6

Browse files
committed
Check for either _store or _owner in React
1 parent 81ae26f commit 917a4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function addAttribute(props, name, value, ctx) {
173173
* `selector`. */
174174
function react(h) {
175175
var node = h && h('div');
176-
return Boolean(node && '_owner' in node && node.key === null);
176+
return Boolean(node && ('_owner' in node || '_store' in node) && node.key === null);
177177
}
178178

179179
/* Check if `h` is `hyperscript`. It doesn’t accept

0 commit comments

Comments
 (0)