NotionX / NotionX/react-notion-x
Hydration Error: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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