Possible livewire/filament bug in ->recordUrl() at table
According to the documentation user gets redirected upon clicking a row
However, I get redirected as soon as I load the page, without clicking anything.
Same thing happens when it's just for one column
25 Replies
I have the following JS errors
What’s in your logs?
That would indicate that you’re missing an import or don’t have the namespace right. Probably in your panel provider.
I need to have the @livewire() in the blade file, right?
Not following you. Sorry.
Unless you are loading a livewire component onto the page you wouldn’t need
@liverwire
at all.Hmm
Ok so where is @livewire?
This is my blade file, when I click on a row, I should technically be able to see the record associated with the clicked row
I just removed it, xd
I thought I would need @livewire('dashboard')
But it cant find it
Ok. Let’s take a step back. Sounds like you’re maybe confusing some methodologies.
What exactly is Dashboard in your use case?
Well its a livewire component
Because its a page, and all pages are LW components
I ask because filament has a concept of a dashboard which is the page a use is redirected to after login.
ohhh, yeah this is my own Dashboard
All resource pages are livewire components.
A custom page is not a livewire component by default.
I might be missing something
A custom page is just a page that uses the page scaffold / blade views. So with a custom page you would have livewire components in the blade view that use forms, tables, etc.
Maybe I’m wrong but in v3 I’ve never been able to add forms and tables directly to a class that extends the Page class.
Huhh
So, I should just make a liveiwre component instead of a page?
Dan has even recommend adding forms and tables as a livewire component inside the page’s blade view.
You still need the page.
But you would create livewire components to add to the pages blade file.
And those livewire components would use the forms/tables etc
So the page is really just a shell.
If that makes sense.
I may not be explaining well.
Can you give me the link to that screen shot from the docs?
Ohh, do I need to reference the LW component in the Dashboard.php?
Something feels off here. And it’s probably me that’s off. Lol.
The original question isn’t making sense with what you’re saying. Not blaming you. Just in my head an automatic redirect without clicking a table row isn’t making sense to me. Something else is wrong here and I’m not sure what it is.
Hmm. Well its late. I might find a solution in the morning 😅
Yea. Sleep on it. I’m willing to help. Just not sure at the moment exactly what is going on.
Thank you sir
Dashboard blade (page)
dash-component blade
I tried it this way, using Livewire and I still have the same problem