Sha256: 8264d147c83e08985c9cd2cc8d72085c237b251be41ad8d79897a12859476b34
Contents?: true
Size: 523 Bytes
Versions: 7
Compression:
Stored size: 523 Bytes
Contents
import { get } from 'foremanReact/redux/API'; import { withInterval, stopInterval, } from 'foremanReact/redux/middlewares/IntervalMiddleware'; import { JOB_INVOCATION_KEY } from './JobInvocationConstants'; export const getData = url => dispatch => { const fetchData = withInterval( get({ key: JOB_INVOCATION_KEY, params: { include_permissions: true }, url, handleError: () => { dispatch(stopInterval(JOB_INVOCATION_KEY)); }, }), 1000 ); dispatch(fetchData); };
Version data entries
7 entries across 7 versions & 1 rubygems