© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
4 replies
Mark Chaney

Table deferLoading() and Tests

When using
$table->deferLoading();
$table->deferLoading();
on a table, how refactor our pest tests that check table records? If do something like
livewire(MultiUnitUpdates::class, ['propertyManager' => $property_manager])
    ->assertCanSeeTableRecords([$floorplan->id])
livewire(MultiUnitUpdates::class, ['propertyManager' => $property_manager])
    ->assertCanSeeTableRecords([$floorplan->id])
It appears that it doesnt really wait until the table loads to verify. This test passes just fine when the table does not have deferLoading() defined.
Solution
Oop, just found loadTable() should be used according to the docs.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

deferLoading
FilamentFFilament / ❓┊help
2y ago
Table `deferLoading()` calling `loadTable` method twice.
FilamentFFilament / ❓┊help
2y ago
deferLoading Placeholder Text
FilamentFFilament / ❓┊help
3y ago
deferLoading by default?
FilamentFFilament / ❓┊help
3y ago