Hi,
I have an SPA which uses Material UI and am adding code splits to improve the perceived page load time.
The problem I'm seeing is that the late loaded split is not seeing the theme that encompasses the applications root element.
I load elements of the split (in the split itself) using code like the following.
(r/render
[:<>
;Parts of the tool bar
[layers-panel]
[config-panel]
[model-info-panel]]
(-> js/document
(.getElementById tool-bar-drawers)))
The split itself is loaded but the theme is not applied. If I insert hiccup into a specific node like this how can I get the theme applied?
Is there an alternative way of introducing the split elements into the tree?
Thanks.