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

Refactor react-native example for improved ergonomics #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cjcenizal
Copy link

Thanks for creating this example @twitchard! I'm using it as a reference for a personal project and and it's been super helpful.

I got a little confused by the use of useEffect to drive connection and mute state because I'm used to seeing a user action map to some kind of change in app state which is then reflected in UI state, rather than an app state change treated as a side effect of a UI state change. This is a small refactor that I think will help folks understand the code and map the patterns to their own code. Feel free to close this if this is inconsistent with the general approach y'all use.

@cjcenizal cjcenizal force-pushed the refactor/react-native-consumer branch from 2362d2c to f0cd646 Compare March 2, 2025 16:46
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.

1 participant