refactor: mainComponent/hooks/webServices/

This commit is contained in:
ISA
2025-03-11 06:47:46 +01:00
parent c797282d35
commit 0dce495435
11 changed files with 19 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
// /components/mainComponent/hooks/useInitGisStationsMeasurements.js
import { useEffect } from "react";
import { useDispatch } from "react-redux";
import { fetchGisSystemStaticFromWebService } from "../../../../redux/slices/webService/gisSystemStaticSlice";
export const useInitGisSystemStatic = () => {
const dispatch = useDispatch();
useEffect(() => {
dispatch(fetchGisSystemStaticFromWebService());
}, [dispatch]);
};