Skip to content

ningle route requirements - what happens when they are not met? #11

Description

@martianhi

i just read through tutorial 11, thanks for it.

i'm interested in your use of requirements. i think in my own login set up, a route will just have a function with an if flow control structure in it: if not logged-in-p, redirect (to prev page or login page) + flash user-error. when you turn logged-in-p into a ningle requirement, it does seem elegant, but i wonder how you handle the failure case? if you can't load the given route, do you redirect somehow?

thanks again

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions