Why is `.onAppear` called twice when using `if/else`

后端 未结 0 596
-上瘾入骨i
-上瘾入骨i 2020-12-18 12:43

I\'m trying to load a remote resource, so I\'m using .onAppear to do that. However, when I use if/else inside the view, it causes the it to fire tw

相关标签:
回答
  • 消灭零回复
提交回复
热议问题