SyneticNL / Hyral

Hypermedia oriented Resource API Layer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collection.isLoading seems to returns false during load

tmhrtwg opened this issue · comments

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

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

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