Skip to content

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

Merged
CodeDredd merged 2 commits intonext-releasefrom
pinia-orm-659
Dec 6, 2022
Merged

perf(pinia-orm-659): Save hydrated models if not updated#671
CodeDredd merged 2 commits intonext-releasefrom
pinia-orm-659

Conversation

@CodeDredd
Copy link
Copy Markdown
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
Copy Markdown

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.

1 participant