f / vue-wait

Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"waiter.match is not a function"

Dylan-Chapman opened this issue · comments

I have the following in a JSX render function:

loading={this.$wait.isWaiting( [ "myFirstLoader", "mySecondLoader" ] )}

And I recieve the error:
"TypeError: waiter.match is not a function" from utils.js

This only happens when passing an array to isWaiting.

If it matters, how I usually handle params that can either be a string or an array:

[].concat( myParam || [] )

Then you can do all array operations.