NotionX / NotionX/react-notion-x

Hydration Error: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.

Open
#492 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Description

When creating from a notion page that includes a collection I get a hydration error because it's attempting to add an <a> for the whole row then another <a> element inside it for the title of the collection entry

Notion Test Page ID

9224bb4d00344d88b06f674c18ff5cc4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hydration error using the Notion test page ID 9224bb4d00344d88b06f674c18ff5cc4, then inspect the collection row and entry-title link rendering. Done means collection pages render without nested elements or a validateDOMNesting hydration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.