boardgame icon indicating copy to clipboard operation
boardgame copied to clipboard

Handle renderer switches better in boardgame-component-stack

Open jkomoros opened this issue 7 years ago • 1 comments

Originally captured in #476

After 35b16c9 , when you switch from one renderer to another type (e.g. from memory to a debug animations game) the very first time the stacks render they don't have access to the deck defaults, and newComponent returns null--so there have to always be checks for it returning null. Then later when the defaults are available it all databinds correctly (how?)

But that feels like a kludge--there seems like there should be a cleaner approach by better understanding the timing

jkomoros avatar Dec 12 '17 03:12 jkomoros

1f109acb86b9bb87c1901e90557a97de2168cd34 is likely referencing this underlying issue, mitigating it somewhat via a hack. (Ideally they'd respond OK to that first render and not need a hard reset like 1f109acb86b9bb87c1901e90557a97de2168cd34 does)

jkomoros avatar Oct 26 '18 02:10 jkomoros