Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

feat: add useChannelStateListener and useConnectionStateListener hooks #52

Closed

Conversation

stmoreau
Copy link
Contributor

@stmoreau stmoreau commented Jul 20, 2023

Resolves #54, #59

Jira links:

I've opted to remove the useChannelState and useConnectionState hooks for now since the functionality is already covered with the listener variants and it's relatively simple to make a component re-render when the state changes using useState. If there's demand for it we can always add the non-listener variants back in future.

@owenpearson owenpearson force-pushed the add-useConnectionState-and-useChannelState branch from 898c29c to 93f6eba Compare August 9, 2023 16:24
gives the user full control over whether their component re-renders
@owenpearson owenpearson changed the title useChannelState and useConnectionState initial implementation feat: add useChannelStateListener and useConnectionStateListener hooks Aug 9, 2023
@owenpearson owenpearson force-pushed the add-useConnectionState-and-useChannelState branch from f50017f to d45d51b Compare August 9, 2023 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants