Enhance ErrorBoundary component with auto-retry functionality

- Added auto-retry feature to ErrorBoundary for handling errors during module federation loading.
- Introduced props for configuring retry behavior: autoRetry, retryDelay, and maxRetries.
- Implemented retry count management and UI feedback for ongoing retries.
- Updated component lifecycle methods to manage retries and cleanup effectively.
- Refactored handleRetry method to reset retry count upon manual retry.
This commit is contained in:
salirezav
2026-01-14 16:41:03 -05:00
parent afefd32c3b
commit c54385a90c
3 changed files with 108 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
"build:watch": "vite build --watch",
"serve:dist": "serve -s dist -l 3003",
"preview": "vite preview --port 3003",
"dev:watch": "npm run build && (npm run build:watch &) && sleep 1 && npx http-server dist -p 3003 --cors -c-1"
"dev:watch": "./wait-and-serve.sh"
},
"dependencies": {
"@supabase/supabase-js": "^2.52.0",