| 1 |
/** |
| 2 |
* Internal dependencies |
| 3 |
*/ |
| 4 |
import { refreshPreloadStatus } from './actions'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Resolver function to fetch and update the preload status. |
| 8 |
* Logs the action and dispatches the `refreshPreloadStatus` action. |
| 9 |
* |
| 10 |
* @returns {Function} A thunk action that dispatches the `refreshPreloadStatus` action. |
| 11 |
*/ |
| 12 |
export const getPreloadStatus = () => async ( { dispatch } ) => { |
| 13 |
await dispatch(refreshPreloadStatus()); |
| 14 |
}; |
| 15 |
|