You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a (rum) hiccup-ish snippet in a template, that is rendered differently by the server side code than it is in the client side code, resulting in a React warning.
Sample code
;; component in cljc
(rum/defc app []
[:input#topics {:type "text"}])
;; server in clj
(rum/render-html (components/app))
;; client in cljs
(rum/mount (components/app) node)
Resulting warning
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
I too have run into this. Besides this minor issue switching my site from Reagent + Nashorn to Rum server side rendering is much faster and streamlined, way to go!
I have a (rum) hiccup-ish snippet in a template, that is rendered differently by the server side code than it is in the client side code, resulting in a React warning.
Sample code
Resulting warning
Some thoughts
Potential fix might be achieved by using something like https://github.com/amalloy/ordered on both clj and cljs sides, or
sorted-map
.The text was updated successfully, but these errors were encountered: