@overmap-ai/blocks 1.0.31-fix-error-boundary.0 → 1.0.31-master.0
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/blocks.js +1 -0
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +1 -0
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -2759,6 +2759,7 @@ const OvermapErrorBoundary = memo((props) => {
|
|
|
2759
2759
|
const [attempt, setAttempt] = React.useState(0);
|
|
2760
2760
|
const logError = useCallback((error, info) => {
|
|
2761
2761
|
console.error(error, info);
|
|
2762
|
+
setAttempt((prev) => prev + 1);
|
|
2762
2763
|
}, []);
|
|
2763
2764
|
const handleRetry = useCallback(() => {
|
|
2764
2765
|
setAttempt((prev) => prev + 1);
|