🐛 Fix workspace hot reload race condtion (#5851)

Mainly ensure that all required paramers for workspace
file and page bootstrap are always available from parameters
and not taken from context
This commit is contained in:
Andrey Antukh 2025-02-13 17:04:34 +01:00 committed by GitHub
parent 46d2359107
commit 5d56d28cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 51 deletions

View file

@ -63,10 +63,10 @@
target-container-id (or target-container-id (:parent-id shape))]
(filter some?
[(when target-page-id (dw/initialize-page target-page-id))
[(when target-page-id (dw/initialize-page (:id file) target-page-id))
(dws/select-shape target-container-id)
(dw/paste-shapes pdata)
(when target-page-id (dw/initialize-page (:id page)))])))
(when target-page-id (dw/initialize-page (:id file) (:id page)))])))
(defn- sync-file [file]
(map (fn [component-tag]