Explorar o código

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

charlie hai 6 días
pai
achega
5ec403c32e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   (shui/dialog-open! installed-themes
                      {:align :top}))
                      {: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] (hook-ui-slot type payload nil #(plugin-handler/hook-plugin-app type % nil)))
   ([type payload opts callback]
   ([type payload opts callback]
    (let [rs      (util/rand-str 8)
    (let [rs      (util/rand-str 8)