From 10201f0a60cd11f09cf4ab8c9abf013a47130307 Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Thu, 1 Feb 2024 21:21:12 +0100 Subject: [PATCH] Properly load the stylesheet in the react-17 preload --- src/day8/re_frame_10x/preload/react_17.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/day8/re_frame_10x/preload/react_17.cljs b/src/day8/re_frame_10x/preload/react_17.cljs index 77e1b815..4f7fd593 100644 --- a/src/day8/re_frame_10x/preload/react_17.cljs +++ b/src/day8/re_frame_10x/preload/react_17.cljs @@ -9,7 +9,8 @@ [day8.re-frame-10x :as re-frame-10x] [day8.re-frame-10x.inlined-deps.reagent.v1v2v0.reagent.dom :as rdom] [day8.re-frame-10x.inlined-deps.re-frame.v1v3v0.re-frame.core :as rf] - [day8.re-frame-10x.events :as events])) + [day8.re-frame-10x.events :as events]) + (:require-macros [day8.re-frame-10x.components.re-com :refer [inline-resource]])) (let [react-major-version (first (str/split react/version #"\."))] (when-not (= "17" react-major-version) @@ -25,7 +26,7 @@ (rf/clear-subscription-cache!) -(def shadow-root (re-frame-10x/create-shadow-root)) +(def shadow-root (re-frame-10x/create-shadow-root (inline-resource "day8/re_frame_10x.css"))) (rdom/render (re-frame-10x/create-style-container shadow-root) shadow-root)