We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0990430 commit c313c36Copy full SHA for c313c36
reflex/components/component.py
@@ -2264,7 +2264,7 @@ def _get_dynamic_imports(self) -> str:
2264
# https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-named-exports
2265
f".then((mod) => mod.{self.tag})"
2266
if not self.is_default
2267
- else ".then((mod) => typeof mod.default === 'function' ? mod.default : mod.default.default)"
+ else ".then((mod) => mod.default.default ?? mod.default)"
2268
)
2269
return (
2270
f"const {self.alias or self.tag} = ClientSide(() => "
0 commit comments