$patch method mutates the state property while trying to update another one #528
Labels
bug
Something isn't working
has workaround
The issue contains a temporary solution to get around the problem
Reproduction
Clone repo https://github.com/Oleksii14/pinia-bug
yarn
yarn serve
Steps to reproduce the behavior
Expected behavior
$patch mutates only the property that I am passing in the state object
Actual behavior
I think $patch is not working properly because it updates the state properties that were not requested
Additional information
The text was updated successfully, but these errors were encountered: