Skip to content

fix(reactivity): correctly trigger content update if prop changes #287

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

Merged
merged 4 commits into from
Dec 20, 2022

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Nov 25, 2022

By using an intermediate value we can trigger the appropriate events only when the prop is externally modified

Fixes #188

It also now correctly trigger content:update if the content is truly different than the prop (as I had this problem and the content would just trigger update randomly even though the content was the same which would trigger a history stack push)

@Tofandel
Copy link
Contributor Author

Tofandel commented Nov 29, 2022

Done testing, I added the test case in the demo which can be seen with the push of a button and typing in the editor

I had to upgrade deps and tweak around because I couldn't get the demo to run with those old deps on my machine, it still cannot build the demo for prod because of the quill-blot-formatter module causing errors when serving but works in dev mode

@Tofandel Tofandel force-pushed the patch-1 branch 2 times, most recently from 08be71b to 7abda7c Compare November 29, 2022 13:49
@luthfi-hh luthfi-hh merged commit 51e3e04 into vueup:master Dec 20, 2022
@luthfimasruri
Copy link
Collaborator

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants