Closed jvdoorn closed 6 years ago
Thanks for the submission. This will unfortunately break submission of the value from the SingleLineAdder being used in src/components/tableentries.js
. There are subtle differences between SingleLineAdder
and SingleLineAdderV2
that must be accounted for, primary that SingleLineAdder
tracks value
in its own internal state, pushing it up to its parent on submission, while SingleLineAdderV2
is "controlled" component, with the expectation that value
is being tracked in its parent's state.
(Overall, this project could benefit from any kind of automated test coverage to catch these kind of things. Probably not in a great state for public submissions at the moment, but thank you.)
As mentioned in #24 I first renamed all uses of
SingleLineAdder
toSingleLineAdderV2
, and then removed theSingleLineAdder
class. Finally, I renamed all uses ofSingleLineAdderV2
back toSingleLineAdder
including the class defenition.