@nine-lab/nine-mu 0.1.371 β 0.1.372
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/nine-mu.js +24 -17
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/hook/NineHook.js +6 -16
package/package.json
CHANGED
|
@@ -142,25 +142,15 @@ class NineExceptionHook extends React.Component {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
// ==========================================
|
|
146
|
-
// π― 3. ν΅μ¬: μ¬μ©μκ° ν μ€λ‘ μ°κ² λ§λ€ ν΅ν© λ§μ€ν° μμ§
|
|
147
|
-
// ==========================================
|
|
148
|
-
// β κ°μ₯ νμ€ν 컨ν
μ€νΈ λ€μ΄λ νΈ μ£Όμ
λ²μ (μλ¬ μμ² μ°¨λ¨)
|
|
149
145
|
export function NineHook({ children, onCatch, fallback, styles, containerStyle }) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const goto = (selector, data) => {
|
|
154
|
-
setActiveView(selector);
|
|
155
|
-
if (data) setSelectedData(data);
|
|
156
|
-
};
|
|
157
|
-
|
|
146
|
+
// μ¬μ©μλ 무쑰건 μ΄κ±° νλλ§ μ°λ©΄ λ!
|
|
147
|
+
// λ΄λΆμ μΌλ‘ μν(ScreenProvider)λ₯Ό λ¨Όμ μ£Όμ
νκ³ , κ·Έ μμμ μλ¬(NineExceptionHook)κ° μμλ€μ κ°μΈμμ 보νΈν©λλ€.
|
|
158
148
|
return React.createElement(
|
|
159
|
-
|
|
160
|
-
|
|
149
|
+
ScreenProvider,
|
|
150
|
+
null,
|
|
161
151
|
React.createElement(
|
|
162
|
-
|
|
163
|
-
{
|
|
152
|
+
NineExceptionHook,
|
|
153
|
+
{ onCatch, fallback, styles, containerStyle },
|
|
164
154
|
children
|
|
165
155
|
)
|
|
166
156
|
);
|