For anyone landing on this you need to put the collection inside of query as well when using getDocs I believe.
import { collection, getDocs, query } from 'firebase/firestore';
const q = query(collection(db, 'incidents'), where('assignedUsers', 'array-contains', userStore.userId));
const querySnapshot = await getDocs(q);