Skip to content
Discussion options

You must be logged in to vote

Every loader and action should authorize the user if required, parent routes don’t protect child routes in every scenario, if your child rout change but the parent didn’t Remix will fetch the child route loader but not the parent route loader so the child loader may not be protected if the user session expires.

Consider each loader and action an API endpoint, you can’t trust an endpoint to protect another endpoint.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@sergiodxa
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants