Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes cannot be created automatically in some scenarios #2738

Open
1057105012 opened this issue Nov 12, 2024 · 1 comment
Open

Routes cannot be created automatically in some scenarios #2738

1057105012 opened this issue Nov 12, 2024 · 1 comment
Labels
information needed Further information is requested

Comments

@1057105012
Copy link

Which project does this relate to?

Router

Describe the bug

The scene is as follows

  1. If the syntax error of some routing files in the routes folder is not resolved, the newly created routing file is not recognized

This use case should identify and automatically create a route, by creating a virtual map that marks the wrong route file and displays it on devtools to indicate that the route exists but is temporarily unavailable. Attempts to recompile when accessing or modifying this route

  1. After you manually modify the automatically generated routing file, the file cannot be automatically repaired and can only be deleted

Although the above two use cases may cover some extreme scenarios, but. In terms of developer friendliness, I think route generation should be as flexible as possible

  1. Regardless of any routing file error, always try to compile and automatically generate files optimistically. For files that cannot be compiled, routes are still generated, but the route is not available

  2. The behavior of the route file automatically created by any incorrect operation should be regenerated, and the same is true for deletion. Each operation checks whether the route file exists. If the route file is not automatically created, the modified timestamp and the latest timestamp maintained in the memory are checked. If the two are inconsistent, it is considered that the route file has been modified manually and the route file is generated again

Your Example Website or App

Steps to Reproduce the Bug or Issue

Expected behavior

Screenshots or Videos

Platform

Additional context

@schiller-manuel
Copy link
Contributor

can you please provide detailed reproduction steps?
a video would also be good as I have trouble understanding what the issue is you are reporting.

@SeanCassiere SeanCassiere added the information needed Further information is requested label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information needed Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants