StevenLambion/SwiftDux

Type erasure

Closed this issue · 2 comments

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.

Thanks for pointing that out. That definitely needs to be changed.

This should be fixed in v0.11.1.