Interface: RouteMapOptions
API / @xmachines/play-tanstack-solid-router / RouteMapOptions
Defined in: play-router/src/types.ts:565
The options of createRouteMap and of createRouteMapFromTree.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
compiledCache? | readonly | PatternCache<URLPatternLike> | The cache of the COMPILED URLPattern, which is what this function returns. The default is a cache that this module shares with every caller of the process. Pass one to give a tenant or a request a compilation that no other evicts, and pass { get: () => undefined, set: () => {} } to compile each time. A caller that passes patternCache for isolation passes this one too. The compiled cache is read FIRST, so a hit on it answers before the parse runs at all — a passed parse cache alone therefore isolates nothing once another caller has compiled the same pattern. | CompileOptions.compiledCache | play-url/src/url-pattern-utils.ts:119 |
pathCache? | public | PatternCache<string | null> | The cache of the state that a VISITED PATH resolves to, or null for a path that resolves to none. The default is a cache of this map alone, of 500 entries in each of two generations. Pass one to raise that bound, to share the resolution across maps, or to give it an eviction policy of your own: createPatternCache(5000) builds one, and so does any object with a get and a set. A cache that a caller passes is keyed by the ROUTE TABLE. Two maps built from the same mappings, in the same order, therefore read each other’s answers — which is what a server that rebuilds its map for each request wants — and two maps built from different mappings never do, because a map with no route for a path writes null for it and a map that holds one must not read that. The keys are the paths that a visitor reaches, so the key space is unbounded: a cache with no bound of its own grows for the life of the process. | - | play-router/src/types.ts:584 |
patternCache? | readonly | PatternCache<ParsedPattern> | The cache of the PARSE of a pattern. The default is the cache that this package shares with every caller of the process. | CompileOptions.patternCache | play-pattern/src/cache.ts:40 |