f / vue-wait

Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
MIT License
2k stars 101 forks source link

"waiter.match is not a function" #36

Closed Dylan-Chapman closed 6 years ago

Dylan-Chapman commented 6 years ago

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.

Dylan-Chapman commented 6 years ago

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.

f commented 6 years ago

Fixed with https://github.com/f/vue-wait/commit/153ece86c07e5f43d6c95350f097dafd246e8367