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
When using global search in SPA mode with multi-tenancy after switching to a different tenant, the results are displayed from a previous tenant. I believe that global search component is not reloaded and still uses initial tenant scope.
screenshot.84.mov
In this video I am on Team 1 tenant. I type post in global search and observe This post is on Team 1 record. After switching to tenant Team 2 I type post in global search and still observe This post is on Team 1 record.
Expected behavior
I expected search to work the same as it does in non SPA mode. Switching tenant and using global search should correctly scope the query to new tenant.
This is how it works in non SPA mode.
screenshot.85.mov
Steps to reproduce
Clone the repo
composer install
php artisan migrate --seed
Log in to the app on / route with the credentials: email - [email protected], password - password
Type post in the global search bar
Observe that This post is on Team 1 is visible
Switch the tenant to Team 2
Type post in the global search bar
Observe that This post is on Team 1 is still visible
Reproduction repository (issue will be closed if this is not valid)
Package
filament/filament
Package Version
v3.2.110
Laravel Version
v11.22.0
Livewire Version
v3.5.6
PHP Version
PHP 8.3.7
Problem description
When using global search in SPA mode with multi-tenancy after switching to a different tenant, the results are displayed from a previous tenant. I believe that global search component is not reloaded and still uses initial tenant scope.
screenshot.84.mov
In this video I am on
Team 1
tenant. I typepost
in global search and observeThis post is on Team 1
record. After switching to tenantTeam 2
I typepost
in global search and still observeThis post is on Team 1
record.Expected behavior
I expected search to work the same as it does in non SPA mode. Switching tenant and using global search should correctly scope the query to new tenant.
This is how it works in non SPA mode.
screenshot.85.mov
Steps to reproduce
composer install
php artisan migrate --seed
/
route with the credentials: email -[email protected]
, password -password
post
in the global search barThis post is on Team 1
is visibleTeam 2
post
in the global search barThis post is on Team 1
is still visibleReproduction repository (issue will be closed if this is not valid)
https://github.com/Plytas/filament-spa-search
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: