NaturalHistoryMuseum/ckanext-nhm

Images don't refresh quickly enough on large searches

Opened this issue · 1 comments

Related to #689. They now do refresh, but there might be a long delay during which the previous search's results still appear to be valid (and then are all suddenly replaced).

There are at least two problems here. The first is that the view components (Table, List, Gallery) are all being mounted, destroyed and remounted when loaded, and the other problems I haven't worked out yet.

Problem one is due to this line:

<div v-show="hasResult" :class="{ disabled: invalidated }">

If the v-show="hasResult" :class="{ disabled: invalidated }" is removed, it stops the double mounting. I can't see any reason why that would be the case though so it might be a Vue bug.