Skip to content
Discussion options

You must be logged in to vote

Hi @tunchamroeun, currently you can do this by using scope on the store:

let viewStore = ViewStore(store.scope(state: ViewState.init))

But it was an oversight of ours to not add an initializer to ViewStore like we did for WithViewStore. We will correct that soon.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tunchamroeun
Comment options

Answer selected by tunchamroeun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants