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

Update selected props only needed #4650

Closed
wants to merge 1 commit into from

Conversation

KentoMoriwaki
Copy link
Contributor

@KentoMoriwaki KentoMoriwaki commented Nov 24, 2023

Please describe your changes

I experienced a performance degradation in my app after I upgraded Tiptap to 2.1.12. I found an issue about this at #4492 and discovered a monkey patch, but it appears that nobody has sent a PR for it.

How did you accomplish your changes

I stopped calling this.renderer.updateProps unnecessary.

How have you tested your changes

I tested on my local environment.

How can we verify your changes

Before

Screen.Recording.2023-11-24.at.10.43.23.mov

After

Screen.Recording.2023-11-24.at.10.41.09.mov

Remarks

[add any additional remarks here]

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

#4492

Copy link

netlify bot commented Nov 24, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 062d550
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/656001e880b2d900080ef440
😎 Deploy Preview https://deploy-preview-4650--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sradu
Copy link

sradu commented Dec 3, 2023

Would be great to have anything that improves React performance.

@QuinnStraus
Copy link

This seems to have been fixed in #4661 which is released in 2.1.13

@janthurau
Copy link
Collaborator

yes! Should be fixed by #4661. Let us know if the issue persists.

@janthurau janthurau closed this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants