Przeglądaj źródła

fix(plugins): mark hook-ui-slot as static for render optimization

charlie 6 dni temu
rodzic
commit
5ec403c32e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/main/frontend/components/plugins.cljs

+ 1 - 1
src/main/frontend/components/plugins.cljs

@@ -1138,7 +1138,7 @@
   (shui/dialog-open! installed-themes
                      {:align :top}))
 
-(rum/defc hook-ui-slot
+(rum/defc hook-ui-slot < rum/static
   ([type payload] (hook-ui-slot type payload nil #(plugin-handler/hook-plugin-app type % nil)))
   ([type payload opts callback]
    (let [rs      (util/rand-str 8)