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

collection.isLoading seems to returns false during load #90

Open
tmhrtwg opened this issue Jul 24, 2019 · 1 comment
Open

collection.isLoading seems to returns false during load #90

tmhrtwg opened this issue Jul 24, 2019 · 1 comment

Comments

@tmhrtwg
Copy link

tmhrtwg commented Jul 24, 2019

Hi!

I've made a LoadingIndicator component which should display if the current collection is loading. I'm using collection.isLoading in an v-if to check if the loading indicator should show or not:
image

It looks like isLoading is returning false while it shouldn't when used inside a Vue <template>, but I could be mistaken.

Tom

@mnugter
Copy link
Collaborator

mnugter commented Jul 24, 2019

The problem is in reactivity with the loading property and the collection.

A work-a-round would be to check for the isLoaded property.

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