We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcf4c6 commit 282cd9bCopy full SHA for 282cd9b
packages/router/src/experimental/route-resolver/resolver-fixed.ts
@@ -182,7 +182,7 @@ export function createFixedResolver<
182
throw new Error(`Record "${String(name)}" not found`)
183
}
184
185
- if (typeof to === 'object' && to.hash && to.hash.startsWith('#')) {
+ if (typeof to === 'object' && to.hash && !to.hash.startsWith('#')) {
186
warn(
187
`A \`hash\` should always start with the character "#". Replace "${to.hash}" with "#${to.hash}".`
188
)
0 commit comments