@lark-apaas/client-toolkit-lite 1.1.7-alpha.16 → 1.1.7-alpha.17

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 CHANGED
@@ -2448,11 +2448,15 @@ var ErrorRender = /* @__PURE__ */ __name((props) => {
2448
2448
  (0, import_react12.useEffect)(() => {
2449
2449
  if (!resetErrorBoundary) return;
2450
2450
  const hmr = getHmrApi();
2451
- if (hmr) {
2452
- return hmr.onSuccess(() => {
2451
+ if (!hmr) return;
2452
+ return hmr.onSuccess(() => {
2453
+ const isVite = typeof window !== "undefined" && Boolean(window.__VITE_HMR__);
2454
+ if (isVite) {
2455
+ window.location.reload();
2456
+ } else {
2453
2457
  resetErrorBoundary();
2454
- });
2455
- }
2458
+ }
2459
+ });
2456
2460
  }, [
2457
2461
  resetErrorBoundary
2458
2462
  ]);