@nine-lab/nine-mu 0.1.368 → 0.1.370
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/package.json
CHANGED
|
@@ -147,11 +147,11 @@ class NineExceptionHook extends React.Component {
|
|
|
147
147
|
// ==========================================
|
|
148
148
|
export function NineHook({ children, onCatch, fallback, styles, containerStyle }) {
|
|
149
149
|
return React.createElement(
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
NineExceptionHook, // ⭐ 1. 에러 바운더리가 최상위에서 철저하게 전체를 감쌉니다.
|
|
151
|
+
{ onCatch, fallback, styles, containerStyle },
|
|
152
152
|
React.createElement(
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
ScreenProvider, // ⭐ 2. 상태 공급자는 에러 바운더리 안전망 안쪽에서 실행됩니다.
|
|
154
|
+
null,
|
|
155
155
|
children
|
|
156
156
|
)
|
|
157
157
|
);
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { NineDiff } from './components/NineDiff.js';
|
|
|
4
4
|
import { NineDiffPopup } from './components/NineDiffPopup.js';
|
|
5
5
|
import { NineMenuDiffPopup } from './components/NineMenuDiffPopup.js';
|
|
6
6
|
import './components/ChatMessage.js';
|
|
7
|
-
import { NineHook } from './components/
|
|
7
|
+
import { NineHook } from './components/hook/NineHook.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Nine-Mu 엔진 메인 클래스
|