Skip to content

Conversation

MidhunSureshR
Copy link
Member

No description provided.

This avoids the hassle of having to manually call emit.
- Rename `SubscriptionViewModel` to `BaseViewModel`. I feel this is
  appropriate since that class does more than just manage subscriptions.
- `getSnapshot` is no longer an abstract method. It's simply a method
  that returns the current snapshot state. This ensures that getSnapshot
result is cached by default which is required by `useSyncExternalStore`.
- `props` are a property of the base vm class so that actual VMs don't
  have to keep creating this property.
@MidhunSureshR MidhunSureshR added the T-Task Tasks for the team like planning label Jul 31, 2025
Base automatically changed from midhun/mvvm/state-management-1 to develop August 6, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant