mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
♻️ Refactor state locality
The main purpose of this refactor is reduce a custom state from different pages and unify them under common access patterns
This commit is contained in:
@@ -41,9 +41,8 @@
|
||||
|
||||
store (the/prepare-store state done
|
||||
(fn [new-state]
|
||||
(t/is (= (get-in new-state [:workspace-data
|
||||
:recent-colors])
|
||||
[color]))))]
|
||||
(let [colors (:recent-colors new-state)]
|
||||
(t/is (= colors [color])))))]
|
||||
|
||||
(ptk/emit!
|
||||
store
|
||||
|
||||
Reference in New Issue
Block a user