Skip to content

Commit e542b4a

Browse files
authored
Merge pull request #1616 from kleros/fix(web)/sortition-phase-refetch
Fix(web): sortition phase refetch
2 parents 907d423 + bf1365e commit e542b4a

File tree

4 files changed

+8
-27
lines changed

4 files changed

+8
-27
lines changed

web/.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
"settings": {
4141
"react": {
4242
"version": "^16.12.0"
43+
},
44+
"import/resolver": {
45+
"typescript": {
46+
"project": "./tsconfig.json"
47+
}
4348
}
4449
},
4550
"rules": {

web/src/app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import GraphqlBatcherProvider from "context/GraphqlBatcher";
88
import IsListProvider from "context/IsListProvider";
99
import { NewDisputeProvider } from "context/NewDisputeContext";
1010
import QueryClientProvider from "context/QueryClientProvider";
11-
// import RefetchOnBlock from "context/RefetchOnBlock";
1211
import StyledComponentsProvider from "context/StyledComponentsProvider";
1312
import Web3Provider from "context/Web3Provider";
1413

web/src/context/RefetchOnBlock.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { REFETCH_INTERVAL } from "consts/index";
2+
13
import { useReadSortitionModule } from "hooks/contracts/generated";
24

35
export const useSortitionModulePhase = () => {
46
// eslint-disable-next-line
57
// @ts-ignore
6-
return useReadSortitionModule({ functionName: "phase" });
8+
return useReadSortitionModule({ functionName: "phase", query: { refetchInterval: REFETCH_INTERVAL } });
79
};

0 commit comments

Comments
 (0)