Skip to content
Discussion options

You must be logged in to vote

This answer by @tgrapperon answers this.

#1666 (comment)

For people that don't want to open the link. In instance where you are just sending an action and not displaying some information in the UI, you can create a ViewStore on the spot when you send the action:

Button("Send") { ViewStore(store.stateless).send(.someAction) }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tgrapperon
Comment options

@Muhammed9991
Comment options

@tgrapperon
Comment options

Answer selected by Muhammed9991
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