@webspatial/react-sdk 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default/index.js +9 -0
- package/dist/default/index.js.map +1 -1
- package/dist/web/index.js +9 -0
- package/dist/web/index.js.map +1 -1
- package/package.json +2 -2
package/dist/default/index.js
CHANGED
|
@@ -1658,6 +1658,15 @@ function useSpatialStyle() {
|
|
|
1658
1658
|
observer.disconnect();
|
|
1659
1659
|
};
|
|
1660
1660
|
}, []);
|
|
1661
|
+
useEffect6(() => {
|
|
1662
|
+
const headObserver = new MutationObserver((mutations) => {
|
|
1663
|
+
checkSpatialStyleUpdate();
|
|
1664
|
+
});
|
|
1665
|
+
headObserver.observe(document.head, { childList: true, subtree: true });
|
|
1666
|
+
return () => {
|
|
1667
|
+
headObserver.disconnect();
|
|
1668
|
+
};
|
|
1669
|
+
}, []);
|
|
1661
1670
|
useEffect6(() => {
|
|
1662
1671
|
if (!ref.current) {
|
|
1663
1672
|
return;
|