mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 03:02:15 +01:00
update query keys to include org id, preventing stale data after organization switch
This commit is contained in:
@@ -8,7 +8,7 @@ export function useTasksQuery() {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
const query = useQuery({
|
||||
queryKey: ['tasks'],
|
||||
queryKey: computed(() => ['tasks', getCurrentOrganizationId()]),
|
||||
queryFn: async () => {
|
||||
const organizationId = getCurrentOrganizationId();
|
||||
if (!organizationId) throw new Error('No organization');
|
||||
|
||||
Reference in New Issue
Block a user