mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 13:21:39 +02:00
✨ Improve workspace initialization flow
This commit is contained in:
parent
8ca6055935
commit
ff00043811
4 changed files with 114 additions and 142 deletions
|
@ -105,7 +105,11 @@
|
|||
(l/derived :workspace-drawing st/state))
|
||||
|
||||
(def workspace-ready?
|
||||
(l/derived :workspace-ready? st/state))
|
||||
(l/derived (fn [state]
|
||||
(and (:workspace-ready? state)
|
||||
(:current-file-id state)
|
||||
(:current-project-id state)))
|
||||
st/state))
|
||||
|
||||
;; TODO: rename to workspace-selected (?)
|
||||
;; Don't use directly from components, this is a proxy to improve performance of selected-shapes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue