spiceflow@1.26.0-rsc.16
-
knownPathsin SpiceflowRegister — declare extra typed paths for mounted sub-apps, docs generators, or external route tables. Declared paths flow intorouter.href(),<Link>,router.push(), androuter.replace()with full:paramand*wildcard support:declare module 'spiceflow/react' { interface SpiceflowRegister { app: typeof app knownPaths: '/docs' | '/docs/:slug' | '/files/*' } } router.href('/docs/:slug', { slug: 'intro' }) // typed router.href('/files/*', { '*': 'a/b.txt' }) // typed
-
'/'is always valid in typed hrefs —<Link href="/">,router.href('/'), androuter.push('/')now type-check correctly even when the home route registers with path''. Also fixesbuildHref('')returning an empty string instead of'/'. -
Fix SSR infinite recursion with wildcard layouts in mounted apps — when a parent app registers a wildcard layout and a mounted child app registers a layout on the same path, route ids collided causing the child layout to resolve to itself, crashing with "Maximum call stack size exceeded". Layout ids are now uniquified per request.