You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using file-based routing, the build plugin/CLI should automatically update route configuration definitions when you rename a route file or even move a route file to another directory.
This process is broken if you use backticks or template literals in the createFileRoute/createLazyFileRoute function parameter.
For example the following route configuration will not be updated
exportconstRoute=createFileRoute(`/about`)({
...
Even though the generator automatically inserts single quotes, the function parameter might be changed to backticks by an ESLint rule to enforce backticks since it makes it easier to add variables to strings.
Uh oh!
There was an error while loading. Please reload this page.
Which project does this relate to?
Router
Describe the bug
When using file-based routing, the build plugin/CLI should automatically update route configuration definitions when you rename a route file or even move a route file to another directory.
This process is broken if you use backticks or template literals in the
createFileRoute/createLazyFileRoute
function parameter.For example the following route configuration will not be updated
Even though the generator automatically inserts single quotes, the function parameter might be changed to backticks by an ESLint rule to enforce backticks since it makes it easier to add variables to strings.
Your Example Website or App
https://stackblitz.com/edit/github-kop2fu1y?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
about.tsx
totest.tsx
Expected behavior
Route config should automatically be updated with the new route.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: