Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voxel demo #65

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Voxel demo #65

merged 7 commits into from
Aug 11, 2023

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Aug 11, 2023

@vercel
Copy link

vercel bot commented Aug 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
y-sweet-demos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 4:58pm

excludeSelf?: boolean
}

export function usePresence<T extends Record<string, any>>(
Copy link
Contributor

Choose a reason for hiding this comment

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

this change should be in another pr

Copy link
Member

Choose a reason for hiding this comment

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

Why do you think so?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tend to agree actually, opened #66.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you think so?

So it's easier to revert in isolation, since we squash commits.

examples/package.json Outdated Show resolved Hide resolved
"@react-three/drei": "^9.80.2",
"@react-three/fiber": "^8.13.6",
"@types/react-color": "^3.0.6",
"@uiw/react-color": "^1.3.3",
Copy link
Member

Choose a reason for hiding this comment

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

Why not use react-color?

I don't know if this is related, but I noticed the color picker is off:
Screenshot 2023-08-11 at 10 07 33 AM

Copy link
Member Author

Choose a reason for hiding this comment

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

react-color hasn't been touched in two years and causes noisy warnings with recent versions of react (github issue)

Copy link
Member Author

Choose a reason for hiding this comment

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

what do you mean by "off"?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, I see what you mean, the colors don't line up by column

const awareness = useAwareness()
const [presence, setPresence] = useState<Map<number, T>>(new Map())

const excludeSelf = options?.excludeSelf ?? true
Copy link
Member

Choose a reason for hiding this comment

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

Minor, but if the default is to exclude self, maybe this option could be called includeSelf?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call, I like the principle that bools should be oriented such that the default is false.

Copy link
Member

@rolyatmax rolyatmax left a comment

Choose a reason for hiding this comment

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

A few comments there, otherwise LGTM

@paulgb paulgb merged commit 87a9ca6 into main Aug 11, 2023
@paulgb paulgb deleted the paulgb/voxel-demo branch August 11, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants