Catch Next/Previous Step Exceptions and redirect aways #64
StanBarrows
started this conversation in
General
Replies: 3 comments 4 replies
|
I have the same issue on my production site Did you find a better solution ? |
0 replies
|
just as a note: I got this information from a tester: they click the 'next' button MANY times and then the page change. |
3 replies
|
For me the 'solution' was easy as I use WireUI and they have a 'Spinner' property on the button and that seems to 'fix' the issue |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Heyhey,
Sometimes I've issues with the consistency of the PreviousStep & NextStep states that I'm using to display the buttons within my navigation for the previous or next step. This leads to hat users can click on a button event if there is no previous or next component.
I never was able to reproduce it with my local system or during testing on the actual environments, but I have a few error logs running into this issue.
I'm trying to catch those exceptions and redirect the users to the start page without rendering the modal-like error messages.
If I try to catch it within the Exception Handler, it throws the following Middleware errors. Any idea how I can achieve this?
Argument #2 ($response) must be of type Symfony\Component\HttpFoundation\Response, Livewire\Redirector given, called in
The current workaround is to override the WizardComponent and return before the exceptions are thrown.
All reactions