Skip to content

Changed Card so that it is re-initialized every time the route changes#3

Open
vesper8 wants to merge 1 commit into
iMuMz:mainfrom
vesper8:master
Open

Changed Card so that it is re-initialized every time the route changes#3
vesper8 wants to merge 1 commit into
iMuMz:mainfrom
vesper8:master

Conversation

@vesper8

@vesper8 vesper8 commented Jan 3, 2022

Copy link
Copy Markdown

Prior to this change, if you have multiple dashboards with a map card, it would not refresh the map when changing between dashboards.

To achieve this I created the init method where I moved most of what was previously nested inside the data hook, and I added a $route watcher which re-runs the init every time the route changes.

Fixes #2

…s. Prior to this change, if you have multiple dashboards with a map card, it would not refresh the map when changing between dashboards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when switching between two dashboards that contains map cards, the maps don't refresh

1 participant