NotionX / NotionX/react-notion-x
Code blocks are not loaded sometimes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
Description
Sometimes the code blocks are not loaded. If you refresh the page multiple times you can see that the code blocks does not appear. I think the cause of this problem is the dynamic import for optional components.
This is how the HTML of the code blocks looks like when it is not rendered:
<div class="notion-blank notion-block-a1dbb3d4d751437d96ce2d412e14e954"> </div>
Notion Test Page ID
https://react-notion-x-demo.transitivebullsh.it/0c322c33381c49bca5083a451c334c39
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 missing code blocks using the linked Notion test page, refreshing until a blank block appears. Start by tracing the dynamic import path for optional components and compare the rendered HTML with the expected code-block output. Done means code blocks render consistently across repeated page loads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, 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