Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Sep 19, 2023
1 parent 336ddf5 commit b8478ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/feedback/feedbackWidgetLoader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {lazy} from 'react';
import React, {Fragment, Suspense, lazy} from 'react';

const FeedbackWidget = lazy(() => import('./feedbackWidget'));

Expand All @@ -9,12 +9,12 @@ export function FeedbackWidgetLoader() {
const isSSR = typeof window === 'undefined';

return (
<React.Fragment>
<Fragment>
{!isSSR && (
<React.Suspense fallback={<div />}>
<Suspense fallback={<div />}>
<FeedbackWidget />
</React.Suspense>
</Suspense>
)}
</React.Fragment>
</Fragment>
);
}

0 comments on commit b8478ce

Please sign in to comment.