Fix extremely slow page load for LNC import
I noticed that the combination of ``` import { Form, PasswordInput, SubmitButton } from '@/components/form' ``` in components/wallet/lnc.js and the dynamic import via `await import` in components/wallet/index.js caused extremely slow page loads.
This commit is contained in:
parent
276e734a7a
commit
1bae891594
|
@ -4,13 +4,14 @@ import useLocalState from '@/components/use-local-state'
|
|||
import { useWalletLogger } from '@/components/wallet-logger'
|
||||
import { SSR } from '@/lib/constants'
|
||||
import { bolt11Tags } from '@/lib/bolt11'
|
||||
import * as lnc from '@/components/wallet/lnc'
|
||||
|
||||
// wallet definitions
|
||||
export const WALLET_DEFS = [
|
||||
await import('@/components/wallet/lnbits'),
|
||||
await import('@/components/wallet/nwc')
|
||||
await import('@/components/wallet/nwc'),
|
||||
// FIXME: this doesn't break the build but it results in infinite page loads for some reason ...
|
||||
// await import('@/components/wallet/lnc')
|
||||
lnc
|
||||
]
|
||||
|
||||
export const Status = {
|
||||
|
|
Loading…
Reference in New Issue