Skip to content

Fix node remove child - #501

Open
jbeard4 wants to merge 4 commits into
mainfrom
fix-node-remove-child
Open

Fix node remove child#501
jbeard4 wants to merge 4 commits into
mainfrom
fix-node-remove-child

Conversation

@jbeard4

@jbeard4 jbeard4 commented Oct 16, 2025

Copy link
Copy Markdown
Member

No description provided.

@jbeard4
jbeard4 temporarily deployed to yourpeer-fix-node-remov-oun5so October 16, 2025 04:05 Inactive

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 45 to +56
useEffect(() => {
function poll() {
// do not translate the title, in order to prevent Google Translate from breaking the page
setNoTranslateOnTitle();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reapply translate="no" when <title> is regenerated

The new setNoTranslateOnTitle() is called only once from the useEffect with an empty dependency list. In Next.js, client-side navigation replaces the <title> element on every route change, so the translate="no" attribute you set here is removed after the first navigation. When Google Translate runs on the subsequent title nodes, the original Node.removeChild error can recur. Consider re-running setNoTranslateOnTitle() whenever the title changes (e.g., via router events or a MutationObserver) so the fix persists across navigations.

Useful? React with 👍 / 👎.

@jbeard4
jbeard4 temporarily deployed to yourpeer-fix-node-remov-oun5so October 16, 2025 04:14 Inactive
@jbeard4
jbeard4 temporarily deployed to yourpeer-fix-node-remov-oun5so October 16, 2025 04:16 Inactive
@shakilhossain1

Copy link
Copy Markdown
Collaborator
image @jbeard4 I'm having this error

@adambard1

Copy link
Copy Markdown
Contributor

This error is still happening on Prod @shakilhossain1 @jbeard4
Steps to recreate

  1. Select Russian
  2. Click Explore services
  3. filter for shelter
  4. Click more details for The Door Bronx
Screenshot 2025-12-12 at 8 29 06 AM

@jbeard4

jbeard4 commented Dec 24, 2025

Copy link
Copy Markdown
Member Author

@shakilhossain1 Can you please check this and resolve merge conflicts?

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.

3 participants