a-frame-components
Advanced tools
Comparing version 1.0.248 to 1.0.249
@@ -151,11 +151,6 @@ import { useEffect, useState, useRef } from 'react'; | ||
useEffect(function () { | ||
if (!initSelector) { | ||
var id = generateUniqueId(); | ||
setSelectId(id); | ||
setSelector("[frame-id=\"".concat(id, "\"]")); | ||
} | ||
else { | ||
setSelector(initSelector); | ||
} | ||
}, [initSelector]); | ||
var id = generateUniqueId(); | ||
setSelectId(id); | ||
setSelector("[frame-id=\"".concat(id, "\"]")); | ||
}, []); | ||
return _a = {}, _a["frame-id"] = selectedId, _a; | ||
@@ -162,0 +157,0 @@ } |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.248", | ||
"version": "1.0.249", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -177,11 +177,6 @@ import { useEffect, useState, useRef } from 'react'; | ||
useEffect(() => { | ||
if (!initSelector) { | ||
let id = generateUniqueId(); | ||
setSelectId(id); | ||
setSelector(`[frame-id="${id}"]`); | ||
} | ||
else { | ||
setSelector(initSelector); | ||
} | ||
}, [initSelector]) | ||
let id = generateUniqueId(); | ||
setSelectId(id); | ||
setSelector(`[frame-id="${id}"]`); | ||
}, []) | ||
@@ -188,0 +183,0 @@ return { [`frame-id`]: selectedId } |
1759598
29992