Skip to content

Commit 01fca87

Browse files
author
Hugo Marcellin
committed
Restore FetchStatus
1 parent 73c6f67 commit 01fca87

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/custom-hooks.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
*/
77

88
import { useEffect, useCallback, useReducer, useState } from 'react';
9-
import { FetchStatus } from '@gridsuite/commons-ui';
9+
10+
export const FetchStatus = {
11+
IDLE: 'IDLE',
12+
FETCHING: 'FETCHING',
13+
FETCH_SUCCESS: 'FETCH_SUCCESS',
14+
FETCH_ERROR: 'FETCH_ERROR',
15+
};
1016

1117
export const ActionType = {
1218
START: 'START',

0 commit comments

Comments
 (0)