stream-chat-react
stream-chat-react copied to clipboard
feat: add a hook and provider to manage user connection
Motivation Provide a hook that would control client (user) connection / re-connection.
Proposed solution
- [ ] hook implementation (such as this closure based one and this one with cancelation feature)
- [ ] provider implementation (
react-activity-feedsStreamAppequivalent) - [ ] docs
- [ ] tests
Acceptance Criteria
- [ ] hook does not try to connect if a connection attempt is in progress
- [ ] hook takes care of disconnect and connect if user identifier changes