You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
Firstly, thanks for fixing the tapping into Vue ecosystem issue. Now, I have discovered yet another issue when I try to navigate programmatically, say from a component, it does not happen. I have a component set up like below:
<?php
namespace App\View\Components;
use Illuminate\View\Component;
use ProtoneMedia\SpladeCore\Attributes\Vue;
class TestComponent extends Component
{
#[Vue]
public function visit(string $route_name)
{
redirect()->route($route_name);
}
public function render()
{
return view('components.test-component');
}
}
And the frontend looking like:
<script setup>
// the rest of the code removed for brevity
</script>
<button @click="visit('dashboard')">Go to dashboard</button>
The expected behaviour was for the component to redirect me to the dashboard, but it does not. It just remains there like nothing hapened
How to reproduce the bug
In a new Laravel project, install splade-core and then try to navigate using a splade-core component (like a component that utilizes Vue 3 from the backend)
Package Version
2.4.0
PHP Version
8.2.0
Laravel Version
10.3
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered:
What happened?
Firstly, thanks for fixing the
tapping into Vue ecosystem
issue. Now, I have discovered yet another issue when I try to navigate programmatically, say from a component, it does not happen. I have a component set up like below:And the frontend looking like:
The expected behaviour was for the component to redirect me to the dashboard, but it does not. It just remains there like nothing hapened
How to reproduce the bug
In a new Laravel project, install splade-core and then try to navigate using a splade-core component (like a component that utilizes Vue 3 from the backend)
Package Version
2.4.0
PHP Version
8.2.0
Laravel Version
10.3
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: