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

Support "route not found" views with the FS router #2189

Open
Legioth opened this issue Mar 7, 2024 · 0 comments
Open

Support "route not found" views with the FS router #2189

Legioth opened this issue Mar 7, 2024 · 0 comments
Labels
enhancement New feature or request hilla Issues related to Hilla

Comments

@Legioth
Copy link
Member

Legioth commented Mar 7, 2024

Describe your motivation

There's no way of defining a client-side catch-all route that would be used in case there isn't any specific matching route. This is handled through ...serverSideRoutes when there are Flow views in the application but the plan is to refrain from delegating to the server if there are no server-side routes.

Describe the solution you'd like

A file named $404.tsx inside frontend/views/ should be used as a * fallback handler on the corresponding level in the generated router configuration.

Describe alternatives you've considered

The alternative is to manually wrap the routing configuration from views.ts to add an outer layer with a * fallback route.

Additional context

No response

@Legioth Legioth added enhancement New feature or request hilla Issues related to Hilla labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

1 participant