Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObservableVIew 对 ForEach 不生效 #2

Open
beforeold opened this issue Nov 17, 2023 · 0 comments
Open

ObservableVIew 对 ForEach 不生效 #2

beforeold opened this issue Nov 17, 2023 · 0 comments

Comments

@beforeold
Copy link

看起来 ObserableVIew 的 tracking 是同步的 apply closure,而 ForEach 的构造器是 @escaping 的 ViewBuilder,将会被异步调用,这歌 ViewBuilder content 里面对 Obserable 对象的访问在 apply 时没有进入 accessList,导致失效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant