Im trying to work with modals to enhance UI, but everytime I press the button to initiate the modal, it would load it up first then redirect with a question mark at the end. Im just at a lost on how to implement them with what I currently have:
*I created authentication using react router that checks to see if the user is an authenticated user; if not redirect the user to discords oauth page to authorize and authenticate
*I referenced this as means to implement a modal:
https://github.com/remix-run/react-router/tree/main/examples/modal
*Code: https://codeshare.io/g8K4lN
#Implementing a Modal Help
5 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
✅Marked as resolved by OP
Help please 😦
After trying to debug this issue, I think I can conlude this is a routing issue because Ive implemented a simple add function that increments count state and when testing it out it would do a redirect by appending a question mark right next to the path just like in the example above
Now my question is how I would go about fixing the flow of authentication for my routes