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

希望有一个可以获取vuxe中action是否进行中状态的插件 #1266

Closed
zjafei opened this issue May 12, 2018 · 1 comment
Closed

Comments

@zjafei
Copy link

zjafei commented May 12, 2018

What problem does this feature solve?

action基本是处理异步业务的。loading的状态是很重要的。
我现在的做法是在每个action中都设置一个isLoading的state
但是我希望 每个action在开始时候在全局的isLoading的action的map里面注册一下loading的状态,
在走完最后一个next后再注销一下。
我通过查询这个action的map就可以知道对应的action的状态
而不用去手动注册好多的isLoading的state

What does the proposed API look like?

`vue.use(vuxeLoading);

const {someActionLoadingState} = vue.vuxeLoading;

console.log(someActionLoadingState) // true or false`

@ktsn
Copy link
Member

ktsn commented Jun 15, 2018

The issue tracker is for bug reports and feature request. If you want to discuss some Vuex plugin idea, please use our forum or chat room. Thanks.

@ktsn ktsn closed this as completed Jun 15, 2018
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