Skip to content

Commit

Permalink
Remove lazy loading from @jbrowse/core, it is troublesome once again …
Browse files Browse the repository at this point in the history
…with vite
  • Loading branch information
cmdcolin committed Oct 21, 2024
1 parent 6f4ccbd commit 480847e
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React, { lazy, Suspense } from 'react'
import React, { Suspense } from 'react'
import { getConf } from '@jbrowse/core/configuration'
import { SanitizedHTML } from '@jbrowse/core/ui'
import { observer } from 'mobx-react'
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip'
// locals
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel'

const BaseTooltip = lazy(() => import('@jbrowse/core/ui/BaseTooltip'))

interface Props {
message: React.ReactNode | string
}
Expand Down Expand Up @@ -41,11 +40,9 @@ const Tooltip = observer(function ({
: undefined

return featureUnderMouse && contents ? (
<Suspense fallback={null}>
<BaseTooltip clientPoint={{ x, y }}>
<TooltipContents message={contents} />
</BaseTooltip>
</Suspense>
<BaseTooltip clientPoint={{ x, y }}>
<TooltipContents message={contents} />
</BaseTooltip>
) : null
})

Expand Down

0 comments on commit 480847e

Please sign in to comment.