Skip to content

Conversation

@punkbit
Copy link
Contributor

@punkbit punkbit commented May 5, 2025

Why?

Prevent re-rendering of Chatbox due to DOM manipulation post mounting

How?

  • Make container
  • Move react query into container
  • Use container as wrapper to component
  • Use reference to render only once

Tickets?

Contribution checklist?

  • The commit messages are detailed
  • The build command runs locally
  • Assets or static content are linked and stored in the project
  • Document filename is named after the slug
  • You've reviewed spelling using a grammar checker
  • For documentation, guides or references, you've tested the commands and steps
  • You've done enough research before writing

Security checklist?

  • Sensitive data has been identified and is being protected properly
  • Injection has been prevented (parameterized queries, no eval or system calls)
  • The Components are escaping output (to prevent XSS)

References?

Optionally, provide references such as links

Preview?

demo-renders-once-enc.mp4

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2025

⚠️ No Changeset found

Latest commit: 626350e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@punkbit punkbit changed the title fix: 🐛 Prevent re-rendering of Chatbox due to DOM manipulation post mounting fix: 🐛 Prevent re-rendering of Chatbox due to possible context or state in SubscriptionModal May 5, 2025
@punkbit punkbit merged commit 31ef601 into develop May 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants