'use client'; import React, { useEffect } from 'react'; import Link from 'next/link'; import { RefreshCw, Home, ShoppingBag, Sparkles } from 'lucide-react'; export default function GlobalAppError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error('[AppError Boundary]:', error); const isChunkError = error.message?.includes('Loading chunk') || error.message?.includes('ChunkLoadError') || error.message?.includes('Failed to fetch dynamically imported module'); if (isChunkError) { const lastReload = sessionStorage.getItem('dripzone_root_error_reload'); const now = Date.now(); if (!lastReload || now - parseInt(lastReload, 10) > 10000) { sessionStorage.setItem('dripzone_root_error_reload', now.toString()); window.location.reload(); } } }, [error]); const handleHardReload = () => { try { sessionStorage.removeItem('dripzone_root_error_reload'); window.location.href = window.location.pathname + '?v=' + Date.now(); } catch (_) { window.location.reload(); } }; return (

DripZone Luxury Store

Hemos actualizado la vitrina con nuevos lanzamientos exclusivos. Recarga para ver la versión más reciente del catálogo.

Inicio
); }