Code diff highlighting not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- documentation
Research direction
Start at the Start migration page and inspect how the shown code block is rendered, comparing the expected diff markers with the displayed output. Trace the page's code-highlighting path and verify the fix by confirming that added and removed lines render with the intended highlighting.
Written by the indexing model from the issue text.
Description
This is what's rendering, at least on the Start migration page. I couldn't find another issue for this but if there is one, apologies for the duplicate.
- export default async function Page({ // [!code --]
- params, // [!code --]
- }: { // [!code --]
- params: Promise<{ slug: string }> // [!code --]
- }) { // [!code --]
+ export const Route = createFileRoute('/app/posts/$slug')({ // [!code ++]
+ component: Page, // [!code ++]
+ }) // [!code ++]
+ function Page() { // [!code ++]
- const { slug } = await params // [!code --]
+ const { slug } = Route.useParams() // [!code ++]
return <div>My Post: {slug}</div>
}
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 401
- Avg merge
- 18h 44m
- Merged PRs (30d)
- 55
Contributor guide
No contributing guide indexed for this repository
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.
More from TanStack/tanstack.com
-
source-audit
Difficulty 1/5 Under an hour Newbie friendliness 84/100
TanStack/tanstack.com#1195 ·
-
source-audit
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TanStack/tanstack.com#1194 · 2 comments ·
-
source-audit
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TanStack/tanstack.com#1177 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
TanStack/tanstack.com#1059 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TanStack/tanstack.com#1030 ·
All issues in TanStack/tanstack.com
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·