Skip to content

Commit f3019e9

Browse files
committed
add a suspense boundary
1 parent eb3bc93 commit f3019e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/components/IconField/IconField.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ export const IconField: FC<IconFieldProps> = ({
118118
so we just have to sneak it into the DOM, which is kind of annoying, but means
119119
that users shouldn't ever spend time waiting for it to load. */}
120120
<div css={{ ...visuallyHidden }}>
121-
<EmojiPicker onEmojiSelect={() => {}} />
121+
<Suspense>
122+
<EmojiPicker onEmojiSelect={() => {}} />
123+
</Suspense>
122124
</div>
123125
</Stack>
124126
);

0 commit comments

Comments
 (0)