inertia2-svelte5-issue Svelte Themes

Inertia2 Svelte5 Issue

[SOLVED] Annoying issue with Inertia version 2 & Svelte 5

Inertia & Svelte 5 Issue

[!WARNING] SOLVED! I'M THE PROBLEM MAKER HERE.

After input password for delete user in a modal, the expected conditions are:

  1. Modal close.
  2. Then redirect to home page.

Actual conditions are:

  1. Redirect to the home page.
  2. The modal still show.

How to run?

It requires Laravel version 12, PHP version 8.3, and NodeJS with minimum version 20.19.0 or higher because of Vite version 7.

  1. Run these command.
git clone https://github.com/senkulabs/inertia2-svelte5-issue.git
cd inertia2-svelte5-issue
composer install && npm install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
composer run dev
  1. Open the http://localhost:8000 and login with user account:
email: [email protected]
password: password
  1. Go to profile then delete user account. The expected conditions are the modal is close then it redirects end-user into the welcome page. But, the actual conditions are it redirects end-user into the welcome page but the modal still show.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes