Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants