Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

docs: `createLink` has no API reference page; 3 how-to guides link to a missing `#createlink` anchor

Aperta Adatta ai principianti
#8,766 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@A-Raphie ci sta già lavorando.

Dal 19/10/2026.

  • #8770 di @A-Raphie — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
documentation

Direzione di ricerca

Leggi le pagine di riferimento delle funzioni esistenti in docs/router/api/router/ e l’esportazione createLink in packages/react-router/src/index.tsx. Aggiungi docs/router/api/router/createLinkFunction.md, inseriscila in Functions in docs/router/api/router.md e aggiorna i link nelle tre guide pratiche indicate. Il lavoro è completato quando la pagina di riferimento esiste e tutti e tre i link puntano ad essa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Which project does this relate to?

Router

Describe the bug

createLink is exported from @tanstack/react-router (packages/react-router/src/index.tsx), but it has no API reference page. Functions like createRoute, linkOptions and redirect each have a page listed in docs/router/api/router.md; createLink is not listed there, and no file under docs/router/api/ mentions it. It is only documented in the Custom Link guide (docs/router/guide/custom-link.md).

Three how-to guides link to it anyway, using an anchor that doesn't exist:

  • docs/router/how-to/integrate-chakra-ui.md line 822
  • docs/router/how-to/integrate-material-ui.md line 716
  • docs/router/how-to/integrate-shadcn-ui.md line 516

Each one is:
[TanStack Router createLink API](../api/router#createlink)

There is no createlink heading or entry in docs/router/api/router.md, so the link does not lead to any createLink documentation.

Proposed fix:

  1. Add docs/router/api/router/createLinkFunction.md, following the format of the other function pages.
  2. List it under "Functions" in docs/router/api/router.md.
  3. Point the three how-to links to the new page.

I'd like to work on this and open a PR.

Complete minimal reproducer

https://github.com/TanStack/router/blob/d9b07e8d3b724cdbfac0aa2fba4c1f7a3a241100/docs/router/how-to/integrate-chakra-ui.md?plain=1#L822

Steps to Reproduce the Bug
  1. Open docs/router/how-to/integrate-chakra-ui.md and go to line 822 (the "Related Resources" section). The same link is in integrate-material-ui.md line 716 and integrate-shadcn-ui.md line 516.
  2. See the link [TanStack Router createLink API](../api/router#createlink).
  3. Open docs/router/api/router.md: there is no createLink entry or heading in the Functions list.
  4. Search docs/router/api/ for "createLink": no results.
Expected behavior

The "TanStack Router createLink API" links lead to an API reference page for createLink, like the pages that exist for createRoute, linkOptions and redirect.

Screenshots or Videos

No response

Platform

N/A, documentation issue

  • Router version: main branch (commit d9b07e8)
Additional context

No response

Lingua principale
TypeScript
Stelle
15.2k
Fork
1.9k
Merge medio
1g 13h
PR unite (30g)
76

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/router

Tutte le issue di TanStack/router

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.