history-root.tsx 466 B

123456789101112131415
  1. import { memo } from 'react'
  2. import { HistoryProvider } from '@/features/history/context/history-context'
  3. import withErrorBoundary from '@/infrastructure/error-boundary'
  4. import { ErrorBoundaryFallback } from '@/shared/components/error-boundary-fallback'
  5. import History from './history'
  6. const HistoryRoot = () => (
  7. <HistoryProvider>
  8. <History />
  9. </HistoryProvider>
  10. )
  11. export default withErrorBoundary(memo(HistoryRoot), () => (
  12. <ErrorBoundaryFallback />
  13. ))