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

Middleware Doesnt Seem To Work With Nuxt Ionic #19

Closed
aaronksaunders opened this issue Jul 2, 2022 · 4 comments Β· Fixed by #59
Closed

Middleware Doesnt Seem To Work With Nuxt Ionic #19

aaronksaunders opened this issue Jul 2, 2022 · 4 comments Β· Fixed by #59
Assignees
Labels
bug Something isn't working

Comments

@aaronksaunders
Copy link
Contributor

aaronksaunders commented Jul 2, 2022

πŸ› The bug

middleware is not being called

πŸ› οΈ To reproduce

  1. go to tab 3
  2. click the button
  3. middle ware should redirect to index

https://stackblitz.com/edit/github-jxba2j?file=pages/tabs/tab3.vue

🌈 Expected behaviour

middleware to be called

ℹ️ Additional context

No response

@aaronksaunders aaronksaunders added the bug Something isn't working label Jul 2, 2022
@aaronksaunders
Copy link
Contributor Author

this bug has been here for a while, if there is an alternate way to create navigation guards without using middleware can someone please suggest otherwise how to I create an app that requires authentication with this nuxt-ionc module?

@daver987
Copy link

daver987 commented Sep 5, 2022

This also was my biggest issue with this module. This module actually makes working with ionic fun instead of cumbersome. Once this get's resolved it's gonna be amazing!

@aaronksaunders
Copy link
Contributor Author

@daver987 I solved my issue by using ionic's LifeCycle methods. I wanted to use middleware for authentication, but now I just check in ionViewWillEnter

Mw3y added a commit to Mw3y/nuxt-ionic that referenced this issue Sep 10, 2022
danielroe pushed a commit that referenced this issue Sep 10, 2022
@daver987
Copy link

daver987 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants