CodeDredd / pinia-orm

The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
https://pinia-orm.codedredd.de/
MIT License
444 stars 38 forks source link

fix(pinia-orm): Updates were wrong for hydrated cache for casts & mutators #1823

Closed CodeDredd closed 4 months ago

CodeDredd commented 4 months ago

🔗 Linked issue

1818

❓ Type of change

📚 Description

The hydration cache was not correctly updated for store updates with existing mutators or casts. Nice side effect. Updates are also faster because only 1 instread of 2 hydrations are happening.

📝 Checklist

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.72%. Comparing base (2e55b90) to head (b96de4a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1823 +/- ## ========================================== + Coverage 99.67% 99.72% +0.05% ========================================== Files 87 87 Lines 5902 5900 -2 Branches 501 500 -1 ========================================== + Hits 5883 5884 +1 + Misses 16 13 -3 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.