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

Multiple Conditions #42

Open
benjamin-t-frost opened this issue Mar 4, 2021 · 0 comments
Open

Multiple Conditions #42

benjamin-t-frost opened this issue Mar 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@benjamin-t-frost
Copy link
Contributor

benjamin-t-frost commented Mar 4, 2021

Use Case:
LDRouteGuard & ldRedirectMixin should be able respond differently for a list of conditions.

Example:

{
      name: 'some.route',
      path: 'some/path',
      component: LDRouteGuard,
      props: {
        component: MyComponent,
        conditions: [
          { flag: 'conditional', value: true, to: () => {} },
          { flag: 'conditional', value: false, to: () => {} },
          { flag: 'conditional', value: 'wild magic', to: () => {} },
        ],
      },
}
@benjamin-t-frost benjamin-t-frost added the enhancement New feature or request label Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant