Type erasure
Closed this issue · 2 comments
yonaskolb commented
Hi, this seems a fantastic and well fleshed out library!
One concern I have is that StateConnectionViewGuard
is type erasing the view hierarchy with AnyView
, which is far as I understand removes the optimizations SwiftUI applies when rendering.
As this is applied on any use of connect()
it basically affects the whole tree when used.
StevenLambion commented
Thanks for pointing that out. That definitely needs to be changed.
StevenLambion commented
This should be fixed in v0.11.1.