>
> Just to record the fix and the a bit more context.  My SPA has a home page 
> and an edit page.  I don't need the edit parts when the home is first 
> loaded so I moved them out to a split. 
> (see https://sa.demo.softwarebynumbers.com/)
>
 

> I added in the load of the custom theme for each render part of the 
> split.  Without this, the material components load the default theme which 
> then overrides the custom theme, and breaks the theme for the entire 
> application.  So the above code in the split become more like this :
>

  (let [theme  @(rf/subscribe [::subs/theme])]
     ...  
    (r/render ;slide over panels
              [:> mui/MuiThemeProvider {:theme theme}
                [layers-panel]
                [config-panel]
                [model-info-panel]]
              (-> js/document
                  (.getElementById tool-bar-drawers)))

This now seems to work and preserves the them for the app.

Thanks.
 

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojurescript/1ffaddd5-b523-4146-83c6-6fe8db2302bdo%40googlegroups.com.

Reply via email to