R
R
Roman2021-11-22 20:40:12
Laravel
Roman, 2021-11-22 20:40:12

Is there an alternative to beforeRouteLeave just for inertiajs?

Hello, is there any similar method for inertiaJs or laravel? I don't use vue-router. It is necessary before the user exits the page to show a modal with a message like: "Are you sure you want to leave this page? .." and if the user clicks "yes" to be transferred to another route, if not, then left on the current page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2021-11-23
@Isildur12

https://gist.github.com/innocenzi/bac9a14ff7611cc8...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question