From 4d850ebe6e636c85cb9aa835b05aad90a5ce1781 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 19 Jun 2023 13:08:11 +0200 Subject: [PATCH] :bug: Add proper features initialization on render entrypoint --- frontend/src/app/render.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/render.cljs b/frontend/src/app/render.cljs index 1b6a0fc7a..9f3db68af 100644 --- a/frontend/src/app/render.cljs +++ b/frontend/src/app/render.cljs @@ -14,7 +14,7 @@ [app.common.types.components-list :as ctkl] [app.common.uri :as u] [app.main.data.fonts :as df] - [app.main.features :as features] + [app.main.features :as feat] [app.main.render :as render] [app.main.repo :as repo] [app.main.store :as st] @@ -52,6 +52,7 @@ (defn ^:export init [] + (st/emit! (feat/initialize)) (init-ui)) (defn reinit @@ -95,7 +96,7 @@ (mf/defc object-svg [{:keys [page-id file-id object-id render-embed?]}] - (let [components-v2 (features/use-feature :components-v2) + (let [components-v2 (feat/use-feature :components-v2) fetch-state (mf/use-fn (mf/deps file-id page-id object-id components-v2) (fn [] @@ -135,7 +136,7 @@ (mf/defc objects-svg [{:keys [page-id file-id object-ids render-embed?]}] - (let [components-v2 (features/use-feature :components-v2) + (let [components-v2 (feat/use-feature :components-v2) fetch-state (mf/use-fn (mf/deps file-id page-id components-v2) (fn []