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

feat: React hooks for Spaces #233

Merged
merged 15 commits into from
Oct 25, 2023
Merged

feat: React hooks for Spaces #233

merged 15 commits into from
Oct 25, 2023

Conversation

ttypic
Copy link
Collaborator

@ttypic ttypic commented Oct 24, 2023

This branch contains all changes related to React hooks for Spaces release

ttypic and others added 13 commits October 24, 2023 22:54
* fix: update callback options

* fix: use `MemberEventsMap` for `MembersEvent`

* feat: add `useCursors` hook (#210)
* feat: slide deck demo with hooks
* fix: `useLocations`,`useMembers` hook overload

add `useCursors` variant without callback
Co-authored-by: Mark Hulbert <39801222+m-hulbert@users.noreply.github.com>
@github-actions github-actions bot temporarily deployed to staging/pull/233/typedoc October 24, 2023 22:22 Inactive
@ttypic ttypic merged commit 05b6710 into main Oct 25, 2023
7 checks passed
@ttypic ttypic deleted the react-hooks branch October 25, 2023 09:59
Comment on lines +28 to +29
setStatus(null);
setMember(null);
Copy link

Choose a reason for hiding this comment

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

FYI - this seems to cause missing rerenders - since React 16 setState(null) acts that way (but seems to be fixed again in React 18)

React 17: https://codesandbox.io/s/react-17-forked-dhx4f8
React 18: https://playcode.io/1655663

That was a fun afternoon 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants