Skip to content
Discussion options

You must be logged in to vote

Hello @ylorn!

There is a gotcha with Group: modifiers you apply to it are effectively applied to each child. In your case, you end up sending .viewAppear twice, causing weird race conditions. You can check this by appending .debugActions() to your reducer. The issue will go away if you replace your group by a VStack for example, or limit .onAppear to only one child.

Edit: No need to be ashamed: you can see myself tripping into it a few months ago: #801

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ylorn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@jshier
Comment options

@ylorn
Comment options

@tgrapperon
Comment options

@ylorn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1119 on June 01, 2022 20:14.