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

TS使用ComponentWithStore时,当存在多个storeBindings元素时,无法在this上找到action方法 #56

Open
xieweixin opened this issue Nov 6, 2024 · 1 comment

Comments

@xieweixin
Copy link

ComponentWithStore({
storeBindings: [
{
namespace: "xxx",
store: store1,
fields: {} as const,
actions: {
a1: "a1"
} as const
},
{
namespace: "yyy",
store: store2,
fields: {} as const,
actions: {

   } as const
}

]
})
调用 this.a1时,爆红,storeBindings里只有一个时不存在问题,版本是4.0.1

@LastLeaf
Copy link
Member

LastLeaf commented Nov 6, 2024

已知问题。不怎么好解决。

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

2 participants