Skip to content

docs: fix broken links to API anchors and removed middleware sections - #15614

Open
SatvikMishra08 wants to merge 1 commit into
remix-run:mainfrom
SatvikMishra08:docs/fix-broken-anchors
Open

SatvikMishra08 wants to merge 1 commit into
remix-run:mainfrom
SatvikMishra08:docs/fix-broken-anchors

Conversation

@SatvikMishra08

Copy link
Copy Markdown

A link check of reactrouter.com turned up a few in-page links in the hand-written docs that don't land anywhere:

  • how-to/error-reporting: HydratedRouter#onError and RouterProvider#onError → #onerror (the generated API pages use lowercase ids)
  • how-to/middleware: createBrowserRouter#optsgetContext → #optsgetcontext
  • upgrading/v7: the future.v8_middleware section linked to #changes-to-getloadcontextapploadcontext and #migration-from-apploadcontext, but those sections are no longer in the middleware guide. I pointed it at the current "Add a getLoadContext function (if applicable)" section, which shows returning a RouterContextProvider.

The Data mode bullet just below still links to #1-typescript-augment-future-for-loaderaction-context, which is also gone. I left it alone because I wasn't sure whether the Future augmentation step still applies or the bullet should be dropped. Happy to update it either way.

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