Dataview Updating - Data not Refreshed?
Closed this issue · 1 comments
simon-leech commented
Description
Workflow
infoj
entry oftype: dataview
andqueryCheck: true
- initially returns some data.- Dataview is a dependent of another field.
- Can see in the Network Tab - the response from the query shows new data.
- 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
simon-leech commented
Completing as this was the use of the reload
flag.