Skip to content

feat(react): let WikilinkHoverCard children return a Promise<ReactNode>#296

Merged
ocavue merged 1 commit into
masterfrom
async-hover-card-body
Jul 12, 2026
Merged

feat(react): let WikilinkHoverCard children return a Promise<ReactNode>#296
ocavue merged 1 commit into
masterfrom
async-hover-card-body

Conversation

@ocavue

@ocavue ocavue commented Jul 12, 2026

Copy link
Copy Markdown
Member

WikilinkHoverCard children may now return a promise: the card stays closed until it resolves, resolving to null or rejecting renders no card, and a result that lands after the pointer moved on is discarded. This lets hosts with asynchronous local content (like Reflect) resolve the target before anything shows, instead of opening an empty card while loading or for a missing note.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview Jul 12, 2026 12:36pm

@pkg-pr-new

pkg-pr-new Bot commented Jul 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/core@296
npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/react@296

commit: bf79401

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.98% 3639 / 3872
🔵 Statements 91.68% 4056 / 4424
🔵 Functions 91.86% 881 / 959
🔵 Branches 85.93% 2487 / 2894
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/components/wikilink-hover-card.tsx 94.54% 86.2% 93.33% 97.82% 68, 109
Generated in workflow #1198 for commit bf79401 by the Vitest Coverage Report Action

@ocavue ocavue force-pushed the async-hover-card-body branch from c2e5770 to bf79401 Compare July 12, 2026 12:36
@ocavue ocavue marked this pull request as ready for review July 12, 2026 12:37
@ocavue ocavue merged commit abab64d into master Jul 12, 2026
10 checks passed
@ocavue ocavue deleted the async-hover-card-body branch July 12, 2026 12:40
@ocavuebot ocavuebot mentioned this pull request Jul 12, 2026
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.

1 participant