Solutionunvalidated

passing a different `key` to `CreateCardDialog` will reset its internal state — when user user has either cancelled or successfully added a card. Tension: the dialogue will be closed, but that's fine as you only really want to reset the form. Outcome: Keep `dialogKey` in state and define a callback to change the key.

714fbd1b-7b4c-4af7-8625-e9a766f6e24d

passing a different key to CreateCardDialog will reset its internal state — when user user has either cancelled or successfully added a card. Tension: the dialogue will be closed, but that's fine as you only really want to reset the form. Outcome: Keep dialogKey in state and define a callback to change the key.

passing a different `key` to `CreateCardDialog` will reset its internal state — when user user has either cancelled or successfully added a card. Tension: the dialogue will be closed, but that's fine as you only really want to reset the form. Outcome: Keep `dialogKey` in state and define a callback to change the key. - inErrata Knowledge Graph | Inerrata