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

feat: add fallback prop to ProtectedRoute and ProtectedParentRoute #3264

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

tqwewe
Copy link
Contributor

@tqwewe tqwewe commented Nov 19, 2024

Adds a fallback prop to protected routes when the inner suspense is loading or the condition returns None.

Closes #3263

@benwis
Copy link
Contributor

benwis commented Nov 20, 2024

I like it! Nice work! I'm happy to merge this, I wonder if any of our examples use it. It'd be a nice addition

@benwis benwis merged commit 89f26f6 into leptos-rs:main Nov 20, 2024
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support fallback or loading_view prop in ProtectedRoute
2 participants