createResource State gets updated without directly doing so
I have a createResource function which retrieves data from a database, in the same function, I'm extracting a set of data and calling setState for an already existing object called selectedTasks.
Later on in my page I'm updating the state of the selectedTasks with a checkbox, however this appears to also be updating my createResource resource. Very confused!
This is my handleCheckboxChange
1 Reply
Then this is the checkbox component itself