Refactor vm context (#769)

This commit is contained in:
Alfonso Grillo
2023-04-05 19:19:05 +02:00
committed by GitHub
parent 063665d05c
commit 9998fadd3b
2 changed files with 48 additions and 55 deletions
@@ -16,9 +16,9 @@
@testable import ElementX
extension ViewModelContext {
extension StateStoreViewModel.Context {
@discardableResult
func nextViewState() async -> ViewState? {
func nextViewState() async -> State? {
await $viewState.nextValue
}
}