We need to construct a new function so they're different when we set_state
(count)
| 184 | """ |
| 185 | |
| 186 | def make_next_count_constructor(count): |
| 187 | """We need to construct a new function so they're different when we set_state""" |
| 188 | |
| 189 | def constructor(): |
| 190 | count.current += 1 |
| 191 | return html.div({"id": f"hotswap-{count.current}"}, count.current) |
| 192 | |
| 193 | return constructor |
| 194 | |
| 195 | @component |
| 196 | def ButtonSwapsDivs(): |
no outgoing calls
no test coverage detected