m-a-k-o / nova-custom-table-card

Simple Nova Card for Custom Tables
MIT License
46 stars 26 forks source link

Table data seems to cache when moving between dashboards #15

Closed patricktsg closed 4 years ago

patricktsg commented 4 years ago

I have two dashboards, Users Insights and Asset Insights.

On those respective dashboards there are tables called 'Most Active Users' and Most Active Assets'.

If I go to the Users dash first it loads the card table with that user data, but then if I got to the Assets dashboard the table name is correct but it still has the user data in it not the assets.

Is there some default caching going on?

m-a-k-o commented 4 years ago

@patricktsg There is no caching.

So you use two different dashboards ?

patricktsg commented 4 years ago

@patricktsg There is no caching.

So you use two different dashboards ?

Yeah two dashboards and when I go into the first one then into the next the card shows the same data as the first dash I visited until I hard refresh the page. I don't think the route change is triggering the data loading?

m-a-k-o commented 4 years ago

@patricktsg Thanks. Can you look at card api response and copy it here ?

patricktsg commented 4 years ago

The response data rows are in-fact correct when I change dashboard but the data in the table still shows the previous page table data. Also, some of the styling (fonts) seem to loose the default nova css

patricktsg commented 4 years ago

Screenshot 2020-04-15 at 09 39 38 Screenshot 2020-04-15 at 09 39 18

m-a-k-o commented 4 years ago

@patricktsg Thans.

Can you send full response from API also with uuid and full rows response?

meredyk commented 4 years ago

@m-a-k-o I have the same problem when use more than one dashboard.

m-a-k-o commented 4 years ago

@meredyk @patricktsg Fixed in following release https://github.com/m-a-k-o/nova-custom-table-card/releases/tag/3.0.0

Please note, refresh has been removed.