Fork me on GitHub
#reagent
<
2019-04-09
>
lilactown16:04:42

(case (s/lower-case (get-in @tab-content [:tab]))
          "apply"         ^{:key 1} [styxponent/fragment {:id "5bZdOSO9KmARsNwFDj67Qg"}]
          "grievences"    ^{:key 2} [styxponent/fragment {:id "2Dld9Iw6XiZF412hIoOUH"}]
          "resources"     ^{:key 3} [styxponent/fragment {:id "1WE5w5eMGFhRjQXSTd4Ll7"}]
          "pharmacy"      ^{:key 4} [styxponent/fragment {:id "YtnfeGlyB7Msj4ImqLDNO"}]
          "forms"         ^{:key 5} [styxponent/fragment {:id "2ARljtDZ5o64T6MMaDIIs2"}]
          )
anyone know why this won't re-render with the new fragment component without the key metadata?

lilactown17:04:23

this also does not re-render:

[styxponent/fragment {:id (case (s/lower-case (get-in @tab-content [:tab]))
                                    "apply"         "5bZdOSO9KmARsNwFDj67Qg"
                                    "grievences"    "2Dld9Iw6XiZF412hIoOUH"
                                    "resources"     "1WE5w5eMGFhRjQXSTd4Ll7"
                                    "pharmacy"      "YtnfeGlyB7Msj4ImqLDNO"
                                    "forms"         "2ARljtDZ5o64T6MMaDIIs2"
                                    )}]

lilactown17:04:43

I can see the props updated in React DevTools, but the fragment render body is never called