F
Filament5mo ago
Masea

Table actions have loading indicator at all times

I load a table in my livewire page. I don't click any actions but loading indicators are apparent as soon as I load the page. This is my table but I am pretty sure it is not related to it:
public function table(Table $table): Table
{
return $table
->heading('Siparişler')
->query(fn () => $this->user->orders())
->inverseRelationship('user')
->columns([
TextColumn::make('code')
->label('Sipariş numarası')
->searchable()
->prefix('#')
->copyable(),
TextColumn::make('totalPrice')
->money('TRY')
->label('Toplam tutar'),
TextColumn::make('created_at')
->label('Tarih')
->sortable()
->dateTime('M d, Y H:i')
])
->filters([

])
->actions([
Action::make('Görüntüle')
->icon('heroicon-o-eye')
->color('gray')
->url(fn ($record) => route('orders.success', $record))
])
->bulkActions([

])
->emptyStateIcon('sui-cart')
->emptyStateHeading('Hiç sipariş verilmemiş')
->emptyStateActions([
Action::make('shop')
->label('Alışverişe Başla')
->url(route('home'))
]);
}
public function table(Table $table): Table
{
return $table
->heading('Siparişler')
->query(fn () => $this->user->orders())
->inverseRelationship('user')
->columns([
TextColumn::make('code')
->label('Sipariş numarası')
->searchable()
->prefix('#')
->copyable(),
TextColumn::make('totalPrice')
->money('TRY')
->label('Toplam tutar'),
TextColumn::make('created_at')
->label('Tarih')
->sortable()
->dateTime('M d, Y H:i')
])
->filters([

])
->actions([
Action::make('Görüntüle')
->icon('heroicon-o-eye')
->color('gray')
->url(fn ($record) => route('orders.success', $record))
])
->bulkActions([

])
->emptyStateIcon('sui-cart')
->emptyStateHeading('Hiç sipariş verilmemiş')
->emptyStateActions([
Action::make('shop')
->label('Alışverişe Başla')
->url(route('home'))
]);
}
It used to be not like this. Something triggered it but dunno why. Any idea? Thanks guys
No description
14 Replies
Masea
Masea5mo ago
Aynone please? Up
awcodes
awcodes5mo ago
any console errors? seems like livewire isn't loading.
Masea
Masea5mo ago
I am not getting any errors. Only this but i think it is not related at all:
No description
Masea
Masea5mo ago
Livewire works btw I can do everything as I would
awcodes
awcodes5mo ago
ok. so there's a bug in that plugin potentially. you should reach out to the author of the plugin. Basically it's breaking the JS, as a result livewire and alpine can't finish executing, thus preventing the spinners from getting hidden.
Masea
Masea5mo ago
It was working with that error being apperant back in the time I am sure it is not related
awcodes
awcodes5mo ago
have you published any of Filament's views? other than that i'm not sure. those spinners show whenever a livewire request is being made and takes longer that 200ms to complete.
Masea
Masea5mo ago
what else should not be working while a livewire request is being made? "have you published any of Filament's views?" how can i make sure of that if i did? I don't quite remember that atm
awcodes
awcodes5mo ago
if you have a 'resources/views/vendor/filament' directory then you have published the views.
Masea
Masea5mo ago
no i don't have that directory
awcodes
awcodes5mo ago
also, is it every table or just the table on this page?
Masea
Masea5mo ago
hold on, let me check Interestingly, it is on the every page outside my filament panel What do u think
awcodes
awcodes5mo ago
are you including Alpine in any of your JS files?
Masea
Masea5mo ago
Uh, I found the problem. I was including both @FilamentScripts and @livewireScripts. I now only include @FilamentScripts and it is working 😐 Thanks anyway
Want results from more Discord servers?
Add your server
More Posts