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

Simplify state in example app #202

Merged
merged 1 commit into from Nov 8, 2021
Merged

Simplify state in example app #202

merged 1 commit into from Nov 8, 2021

Conversation

ben-xD
Copy link
Contributor

@ben-xD ben-xD commented Nov 4, 2021

With this change, users of the example app no longer need to create instances of Realtime and Rest. These get created automatically. This simplifies the state for the entire app, as the rest of the app can rely on Realtime and Rest instances existing. This allows me to avoid adding more complicated state management tools, like Bloc, getx, provider, etc for my upcoming symmetric encryption PR.

The UI changes from (before, left) and after (right):
Frame 109

Copy link
Contributor

@ikbalkaya ikbalkaya left a comment

Choose a reason for hiding this comment

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

(Attention: light review) Looks good to me

Copy link
Contributor

@QuintinWillison QuintinWillison left a comment

Choose a reason for hiding this comment

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

I'm on the fence as to whether I'm truly in favour of this change, as the example app was originally designed to be very manually driven, which can be helpful when debugging as-yet-unidentified issues.

Given I know that we have reasons that we're pressured to deliver #192, and this PR is now blocking that, I guess we need to land this. But I would like to revisit this so I shall create an issue for that.

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