Force reload

This commit is contained in:
Paulo Gustavo Veiga 2022-04-06 21:22:42 -03:00
parent 8d23296386
commit c5559009be

View File

@ -43,7 +43,7 @@ type MapLoadResult = {
export const fetchMapById = (id: number): MapLoadResult => {
const client: Client = useSelector(activeInstance);
const { isLoading, error, data } = useQuery<unknown, ErrorInfo, MapInfo[]>('maps', () => {
const { isLoading, error, data } = useQuery<unknown, ErrorInfo, MapInfo[]>(`maps-${id}`, () => {
return client.fetchAllMaps();
});