The documentation explains quite simply how to deal with redirects: https://inertiajs.com/redirects. Make sure you're performing the redirect correctly, using an Inertia response.
Aug 27, 2024
6
Level 2
Inertia redirections
Still playing around with Inertia. Now I found out that redirections cause a full page reload, which I didn't expect. Does it happen only in development mode? Or does Inertia handle redirections by just reloading a page, which would make me really surprised and disappointed? It looks terrible, as there's a flash of unstyled content happening.
Level 2
@jaseofspades88 I figured it out! So I've been updating a JSON file in my form action and I also use this JSON file in my client-side app. That caused the hot reload! Redirections are fine, what a relief!
Please or to participate in this conversation.