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

Added Router BeforeAll Hook #228

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

suresh-gangumalla
Copy link
Collaborator

  • Updated Router configuration to include router hooks along with routes from Application instance
  • Executing router beforeAll hook on every route navigation

- Updated Router configuration to include router hooks
along with routes from Application instance
- Executing router beforeAll hook on every route navigation

Signed-off-by: Suresh Kumar Gangumalla <[email protected]>
Copy link
Collaborator

@michielvandergeest michielvandergeest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks good, but as far as I understand it's now only possible to provide a router object in the ApplicationConfig

I think ideally we would keep the 'simple' configuration with direct routes (using the routes-property, along side the advanced configuration using the router-key.

If possible, the Typescript definitions should indicate that only 1 configuration (routes vs router) is allowed at the same time

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.

2 participants