Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(pinia-orm-659): Save hydrated models if not updated #671

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

CodeDredd
Copy link
Owner

@CodeDredd CodeDredd commented Dec 6, 2022

πŸ”— Linked issue

closes #659, related vuex-orm/vuex-orm#746

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Right now if any action is called every model is new hydrated which triggers an update event if you have child components
using the model.
With this change hydrated models are saved and only updated if they change, so thate no rerender is triggered.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@CodeDredd CodeDredd added the enhancement New feature or request label Dec 6, 2022
@CodeDredd CodeDredd self-assigned this Dec 6, 2022
@vercel
Copy link

vercel bot commented Dec 6, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

2 Ignored Deployments
Name Status Preview Updated
pinia-orm-docs ⬜️ Ignored (Inspect) Dec 6, 2022 at 10:38AM (UTC)
pinia-orm-playground ⬜️ Ignored (Inspect) Dec 6, 2022 at 10:38AM (UTC)

@CodeDredd CodeDredd merged commit 4cb8bae into next-release Dec 6, 2022
@CodeDredd CodeDredd deleted the pinia-orm-659 branch December 6, 2022 10:43
@CodeDredd CodeDredd mentioned this pull request Dec 6, 2022
CodeDredd added a commit that referenced this pull request Dec 6, 2022
* fix(pinia-orm): Query constraints with nested relations in m:m relations broken (#625)

* fix(pinia-orm): Query constraints with nested relations in m:m relations broken

* refactor(pinia-orm): remove skip in test

* feat(pinia-orm): Add the option to sort case insensitive with `sortBy` (#636)

* docs(pinia-orm): Add requirements info for nuxt 2 users (#638)

* refactor(normalizr): reduce code to only used by orm (#641)

* perf(pinia-orm-659): Save hydrated models if not updated (#671)

* perf(pinia-orm-659): Save hydrated models if not updated

* refactor(pinia-orm): typo

closes #659, #623, #628
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant