@noya-app/noya-multiplayer-react 0.1.57 → 0.1.59

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/index.mjs CHANGED
@@ -4012,8 +4012,9 @@ var ErrorOverlay = React.memo(function ErrorOverlay2({
4012
4012
  });
4013
4013
 
4014
4014
  // src/inspector/useStateInspector.tsx
4015
- import React4, { useLayoutEffect as useLayoutEffect2 } from "react";
4015
+ import React4 from "react";
4016
4016
  import { createRoot } from "react-dom/client";
4017
+ import { useIsomorphicLayoutEffect } from "@noya-app/react-utils";
4017
4018
 
4018
4019
  // src/inspector/StateInspector.tsx
4019
4020
  import { memoGeneric } from "@noya-app/react-utils";
@@ -5053,7 +5054,7 @@ function useStateInspector({
5053
5054
  anchor
5054
5055
  }) {
5055
5056
  const [root, setRoot] = React4.useState(null);
5056
- useLayoutEffect2(() => {
5057
+ useIsomorphicLayoutEffect(() => {
5057
5058
  if (disabled) return;
5058
5059
  const { host, container } = createShadowRootElement();
5059
5060
  const root2 = createRoot(container);
@@ -5063,7 +5064,7 @@ function useStateInspector({
5063
5064
  document.body.removeChild(host);
5064
5065
  };
5065
5066
  }, [disabled]);
5066
- useLayoutEffect2(() => {
5067
+ useIsomorphicLayoutEffect(() => {
5067
5068
  if (!root) return;
5068
5069
  root.render(
5069
5070
  /* @__PURE__ */ React4.createElement(