Skip to content

Commit

Permalink
fix? dynamically import tx history contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Aug 4, 2024
1 parent 72902f5 commit a2da707
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/common/CoreAppWrapper/CoreAppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ import { QuickProjectSearchProvider } from 'components/QuickProjectSearch/QuickP
import { EtherPriceProvider } from 'contexts/EtherPrice/EtherPriceProvider'
import ReactQueryProvider from 'contexts/ReactQueryProvider'
import { ThemeProvider } from 'contexts/Theme/ThemeProvider'
import EthersTxHistoryProvider from 'contexts/Transaction/EthersTxHistoryProvider'
import WagmiTxHistoryProvider from 'contexts/Transaction/WagmiTxHistoryProvider'
import { useInitWallet } from 'hooks/Wallet'
import { installJuiceboxWindowObject } from 'lib/juicebox'
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import React, { useEffect } from 'react'
import { twJoin } from 'tailwind-merge'
import { redirectTo } from 'utils/windowUtils'
const EthersTxHistoryProvider = dynamic(
() => import('contexts/Transaction/EthersTxHistoryProvider'),
{ ssr: false },
)
const WagmiTxHistoryProvider = dynamic(
() => import('contexts/Transaction/WagmiTxHistoryProvider'),
{ ssr: false },
)

/**
* Contains all the core app providers used by each page.
Expand Down

0 comments on commit a2da707

Please sign in to comment.