GEOLYTIX/xyz

Dataview Updating - Data not Refreshed?

Closed this issue · 1 comments

Description

Workflow

  1. infoj entry of type: dataview and queryCheck: true - initially returns some data.
  2. Dataview is a dependent of another field.
  3. Can see in the Network Tab - the response from the query shows new data.
  4. Dataview is not updated with new data unless you manually refresh the location.

Possible Issues in lib\ui\locations\entries\dataview.mjs (populate more tomorrow)

Why is the data nullish assigned, this means on the second query to same entry it won't be updated?

entry.data ??= entry.value

Why is the class set to entry.class - this results in undefined often. This should be more descriptive, ie query, key or field.

  // Dataview will be rendered into location view.
    entry.locationViewTarget = mapp.utils.html.node`
      <div class="${`location ${entry.class}`}">`

    entry.target = entry.locationViewTarget

Type of Issue

Please delete options that are not relevant, and select all options that apply.

  • ✅ Bug

Completing as this was the use of the reload flag.