@servlyadmin/runtime-react 0.1.35 → 0.1.36
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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -128,7 +128,7 @@ function ServlyComponent({
|
|
|
128
128
|
className,
|
|
129
129
|
style,
|
|
130
130
|
showSkeleton = true,
|
|
131
|
-
cacheStrategy = "
|
|
131
|
+
cacheStrategy = "localStorage",
|
|
132
132
|
retryConfig,
|
|
133
133
|
eventHandlers,
|
|
134
134
|
children,
|
|
@@ -236,7 +236,7 @@ function ServlyComponent({
|
|
|
236
236
|
setIsRendered(false);
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
|
-
}, [state.data, eventHandlers, waitForStyles]);
|
|
239
|
+
}, [state.data, state.views, state.registry, eventHandlers, waitForStyles]);
|
|
240
240
|
(0, import_react.useEffect)(() => {
|
|
241
241
|
if (!renderResultRef.current || !state.data) return;
|
|
242
242
|
const context = {
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ function ServlyComponent({
|
|
|
96
96
|
className,
|
|
97
97
|
style,
|
|
98
98
|
showSkeleton = true,
|
|
99
|
-
cacheStrategy = "
|
|
99
|
+
cacheStrategy = "localStorage",
|
|
100
100
|
retryConfig,
|
|
101
101
|
eventHandlers,
|
|
102
102
|
children,
|
|
@@ -204,7 +204,7 @@ function ServlyComponent({
|
|
|
204
204
|
setIsRendered(false);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
}, [state.data, eventHandlers, waitForStyles]);
|
|
207
|
+
}, [state.data, state.views, state.registry, eventHandlers, waitForStyles]);
|
|
208
208
|
useEffect(() => {
|
|
209
209
|
if (!renderResultRef.current || !state.data) return;
|
|
210
210
|
const context = {
|