💫 The magic of Inertia.js with the simplicity of Blade 💫 - Splade provides a super easy way to build Single Page Applications (SPA) using standard Laravel Blade templates, and sparkle it to make it interactive. All without ever leaving Blade.
Dev environment (OS, Sail/Valet/etc): Linux Mint 21.3 Virginia
Description:
I have on my site different x-splade-rehydrate with different names (on="name1", on="name2" ...) but it loads every time the content of the first x-splade-rehydrate even if I call the second one (push an event e.g. @success="$splade.emit('name2')")
4. Call the test.blade.php (/test) and insert some names
5. Click the 'Create new user' link to open the modal form
6. Insert a name (should be a different name :) and submit the form
7. Now you see the list of the names you inserted on the first form
8. Reopen the modal window and you see the name you inserted on the second form (just to see, it was saved)
Description:
I have on my site different x-splade-rehydrate with different names (on="name1", on="name2" ...) but it loads every time the content of the first x-splade-rehydrate even if I call the second one (push an event e.g. @success="$splade.emit('name2')")
Steps To Reproduce Issue:
Add new routes in your routes file (web.php)
Add 2 views to call test.blade.php
<x-splade-form action="/test" stay @success="$splade.emit('team-member-added')">
@foreach(session()->get('data.users') as $user)- {{ $user }}
@endforeach
@endifCreate new user