refactor: mainComponent/hooks/webServices/
This commit is contained in:
@@ -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]);
|
||||
};
|
||||
Reference in New Issue
Block a user