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

data-config疑似存在并发读写问题 #32

Open
BinBrian opened this issue Oct 2, 2024 · 0 comments
Open

data-config疑似存在并发读写问题 #32

BinBrian opened this issue Oct 2, 2024 · 0 comments

Comments

@BinBrian
Copy link

BinBrian commented Oct 2, 2024

描述

data-config在数据源发生变更时,进行读配置数据看上去会存在并发问题。

具体细节

在组件OnChange的回调函数中,虽然在OnLoadConfig会上写锁,但是IConfig读取配置数据并没有上读锁,此时在读取配置数据时发生数据reload,应该会出现多个协程同时读写同个配置对象的问题

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