CEC-5344: increase polling (#477)
This commit is contained in:
@@ -211,7 +211,7 @@ export const FleetProvider = ({ children }) => {
|
|||||||
return vehicle;
|
return vehicle;
|
||||||
}));
|
}));
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}, 2000);
|
}, 5000);
|
||||||
|
|
||||||
const addFleetVehicles = async (name, vehicles, token) => {
|
const addFleetVehicles = async (name, vehicles, token) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const Component = (props) => {
|
|||||||
} = useUserContext();
|
} = useUserContext();
|
||||||
const { getConnections, getLocations, getState } = useVehicleContext();
|
const { getConnections, getLocations, getState } = useVehicleContext();
|
||||||
|
|
||||||
const REQUEST_INTERVAL = 10000;
|
const REQUEST_INTERVAL = 30000;
|
||||||
|
|
||||||
const [center, setCenter] = useState([0, 0]);
|
const [center, setCenter] = useState([0, 0]);
|
||||||
const [zoom, setZoom] = useState(2);
|
const [zoom, setZoom] = useState(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user