© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Bryan

Redirect to livewire component doesnt trigger error

I am trying to redirect to a livewire component, but the error is not being shown. I fill the error based on a
ErrorMessage
ErrorMessage
livewire component

This is what I am trying to do in the mount() of my OrderForm
if (Route::getRoutes()->match(Request::create(request()->session()->previousUrl()))->getName() === 'orders.confirmation') {
            $this->dispatch(
                event: 'error',
                error: 'Er is iets misgegaan met de betaling. Probeer het later opnieuw.'
            );
        }
if (Route::getRoutes()->match(Request::create(request()->session()->previousUrl()))->getName() === 'orders.confirmation') {
            $this->dispatch(
                event: 'error',
                error: 'Er is iets misgegaan met de betaling. Probeer het later opnieuw.'
            );
        }


Is this the right moment to do the dispatch?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Redirect from Livewire component boot()
FilamentFFilament / ❓┊help
2y ago
LiveWire Redirect
FilamentFFilament / ❓┊help
2y ago
Custom redirect after login from livewire component
FilamentFFilament / ❓┊help
2y ago
How to trigger a livewire component on table action
FilamentFFilament / ❓┊help
3y ago