Closed petterik closed 7 years ago
I narrowed the warning down to this minimal case:
(defui SSRBug
Object
(render [this]
(dom/div
#js {:style #js {:backgroundImage "&"}})))
Fixes warnings for me by escaping string values in the :styles
map in om.dom:
https://github.com/omcljs/om/blob/master/src/main/om/dom.cljc#L468
Did: Used om.dom for server and client side rendering.
Happened:
Expected: React to not print the warning, as the server and client side render the same markup.