We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9eada2 + 40cd7cc commit 29bbe46Copy full SHA for 29bbe46
src/cljs/nr/gameboard/player_stats.cljs
@@ -117,4 +117,7 @@
117
(fn [player]
118
[:div.panel.blue-shade.stats {:class (when (:active @player) "active-player")}
119
(name-area (:user @player))
120
- [stats-area player]]))
+ ;; note: react doesn't like defmulti much, and caches the first hit
121
+ ;; when it redoes stats - so it needs a key to re-render if sides
122
+ ;; change (ie playing a corp game after playing a runner game) - nbk
123
+ ^{:key (get-in @player [:identity :side])} [stats-area player]]))
0 commit comments