-
Notifications
You must be signed in to change notification settings - Fork 329
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedLooking for assistance on this issueLooking for assistance on this issuesolid-routerRelated to Solid RouterRelated to Solid Router
Description
📚 Subject area/topic
/guides/routing-and-navigation.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/guides/routing-and-navigation
📋 Description of content that is out-of-date or incorrect
In the MatchFilter usage example the following code has two issues:
import { Router, Route } from "@solidjs/router";
import type { SegmentValidators } from "./types";
const User = lazy(() => import("./pages/User"));
const filters: MatchFilters = {
parent: ["mom", "dad"], // allow enum values
id: /^\d+$/, // only allow numbers
withHtmlExtension: (v: string) => v.length > 5 && v.endsWith(".html"), // only `*.html` extensions wanted
};
- SegmentValidators is imported from a file that is not included in the example and, in addition, it's not used in the code.
- MatchFilters is not imported.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedLooking for assistance on this issueLooking for assistance on this issuesolid-routerRelated to Solid RouterRelated to Solid Router