Replies: 1 comment
-
Have you tried native import {lazy} from "react"
import {ClientOnly} from "remix-utils/client-only"
export let ApexChart = lazy(() => import("./ApexChart"))
export function YourComponent() {
return <ClientOnly>
{() => <ApexChart/>}
</ClientOnly>
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd just think it'd be nice if we could eventually use
next/dynamic
into the route definition array. For now, the type aren't matching so we can't do:the way to work around it is:
which i think is a bit cumbersome.
PS: i also asked Next to support a component mode for their
dynamic
which at the moment is not permitted → vercel/next.js#52236Beta Was this translation helpful? Give feedback.
All reactions