Skip to content

Commit

Permalink
chore: optimize logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Mar 19, 2024
1 parent f6fcb0b commit d2e9980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/dynamic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function dynamic<P = {}>(loader: Loader<P>, option?: DynamicOptions) {
return (props) => {
const hasMounted = useMounted();

return ssr || (!ssr && hasMounted) ? (
return ssr || hasMounted ? (
<Suspense fallback={<Fallback />}>
<LazyComp {...props} />
</Suspense>
Expand Down

0 comments on commit d2e9980

Please sign in to comment.