mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 14:46:37 +02:00
🐛 Prevent full dashboard state refetch on toggle visibility of templates
This commit is contained in:
parent
243ce3650f
commit
b65a013235
2 changed files with 3 additions and 2 deletions
|
@ -108,7 +108,8 @@
|
||||||
(not= "0.0" (:main cf/version)))
|
(not= "0.0" (:main cf/version)))
|
||||||
[:& app.main.ui.releases/release-notes-modal {:version (:main cf/version)}]))
|
[:& app.main.ui.releases/release-notes-modal {:version (:main cf/version)}]))
|
||||||
|
|
||||||
[:& dashboard {:route route :profile profile}]]
|
(when profile
|
||||||
|
[:& dashboard {:route route :profile profile}])]
|
||||||
|
|
||||||
:viewer
|
:viewer
|
||||||
(let [{:keys [query-params path-params]} route
|
(let [{:keys [query-params path-params]} route
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
(hooks/use-shortcuts ::dashboard sc/shortcuts)
|
(hooks/use-shortcuts ::dashboard sc/shortcuts)
|
||||||
|
|
||||||
(mf/with-effect [profile team-id]
|
(mf/with-effect [team-id]
|
||||||
(st/emit! (dd/initialize {:id team-id}))
|
(st/emit! (dd/initialize {:id team-id}))
|
||||||
(fn []
|
(fn []
|
||||||
(st/emit! (dd/finalize {:id team-id}))))
|
(st/emit! (dd/finalize {:id team-id}))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue