Skip to content

Commit

Permalink
fix: fragment vs array issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Oct 24, 2023
1 parent a723863 commit 2f2388c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions website/components/live.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,18 @@ function useLiveCursors() {
export function Cursors() {
const cursors = useLiveCursors();

return cursors.map(({ x, y, connectionId }) => (
<Cursor
key={connectionId}
color={COLORS[connectionId % COLORS.length]}
x={x}
y={y}
/>
));
return (
<>
{cursors.map(({ x, y, connectionId }) => (
<Cursor
key={connectionId}
color={COLORS[connectionId % COLORS.length]}
x={x}
y={y}
/>
))}
</>
);
}

export function getCount() {
Expand Down

2 comments on commit 2f2388c

@vercel
Copy link

@vercel vercel bot commented on 2f2388c Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sink – ./packages/kitchen-sink

million-kitchen-sink-atit.vercel.app
sink-git-main-millionjs.vercel.app
sink.million.dev
sink-millionjs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2f2388c Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

million-kitchen-sink – ./packages/kitchen-sink

million-kitchen-sink-millionjs.vercel.app
million-kitchen-sink-git-main-millionjs.vercel.app
million-kitchen-sink.vercel.app

Please sign in to comment.