moving deletion logic to component would also be a valid solution. neither is inherently better imo (look into this), but for he site to function properly, they both need to be handled in the same place.
at the moment, delete is reading & altering the store, while create is reading & altering the state. they need to be operating on the same data.
moving deletion logic to component would also be a valid solution. neither is inherently better imo (look into this), but for he site to function properly, they both need to be handled in the same place.
at the moment, delete is reading & altering the store, while create is reading & altering the state. they need to be operating on the same data.