Manually loading a page with vue after axios call #1294
Unanswered
pablosebastianr
asked this question in
Help (Vue)
Replies: 0 comments
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.
-
I've setup the Error page similar to what is shown in https://inertiajs.com/error-handling (Laravel option)
When an error (500 status for example) fires in the backend, the error handler issues Inertia::render('Error', []) to show the message.
Now, if I'm doing a axios call, how do I render/load that Error.vue page from the vue component that made said axios call ? Is it possible ?
I know I could make an server route to navigate to an error page, but that doesn't sound too good. I already got the response from the server, sending that message back to the backend again so I can show with Error.vue looks bad.
Beta Was this translation helpful? Give feedback.
All reactions