This repository was archived by the owner on May 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +14
-0
lines changed Expand file tree Collapse file tree 7 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import CookbookTableEmptyFiltered from '../components/CookbookTable/CookbookTabl
8
8
import CookbookTable from '../components/CookbookTable/CookbookTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function FavoriteCookbooks ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function FavoriteCookbooks() {
17
18
user : { cookbooks : AssistantCookbook [ ] } ;
18
19
} > ( GET_USER_SUBSCRIBED_COOKBOOKS , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'favorite-cookbooks' ,
22
24
} ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
8
8
import SnippetTable from '../components/SnippetTable/SnippetTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function MySnippets ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MySnippets() {
17
18
user : { recipes : AssistantRecipeWithStats [ ] } ;
18
19
} > ( GET_USER_SUBSCRIBED_RECIPES , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'favorite-snippets' ,
22
24
} ,
Original file line number Diff line number Diff line change 9
9
GetRecipesSemanticallyVariables ,
10
10
GET_RECIPES_SEMANTICALLY ,
11
11
} from '../graphql/queries' ;
12
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
12
13
13
14
export default function Home ( ) {
14
15
const variables = useQueryVariables ( 'home' ) ;
@@ -18,6 +19,7 @@ export default function Home() {
18
19
GetRecipesSemanticallyVariables
19
20
> ( GET_RECIPES_SEMANTICALLY , {
20
21
variables : variables as GetRecipesSemanticallyVariables ,
22
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
21
23
context : {
22
24
debounceKey : 'search' ,
23
25
} ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import CookbookTableEmptyFiltered from '../components/CookbookTable/CookbookTabl
8
8
import CookbookTable from '../components/CookbookTable/CookbookTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function MyCookbooks ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MyCookbooks() {
17
18
user : { cookbooks : AssistantCookbook [ ] } ;
18
19
} > ( GET_USER_COOKBOOKS , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'my-cookbooks' ,
22
24
} ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
8
8
import SnippetTable from '../components/SnippetTable/SnippetTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function MySnippets ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MySnippets() {
17
18
user : { recipes : AssistantRecipeWithStats [ ] } ;
18
19
} > ( GET_USER_RECIPES , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'my-snippets' ,
22
24
} ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import CookbookTableEmptyFiltered from '../components/CookbookTable/CookbookTabl
8
8
import CookbookTable from '../components/CookbookTable/CookbookTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function TeamCookbooks ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function TeamCookbooks() {
17
18
cookbooks : AssistantCookbook [ ] ;
18
19
} > ( GET_SHARED_COOKBOOKS , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'team-cookbooks' ,
22
24
} ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
8
8
import SnippetTable from '../components/SnippetTable/SnippetTable' ;
9
9
import { useFilters } from '../components/FiltersContext' ;
10
10
import useQueryVariables from '../hooks/useQueryVariables' ;
11
+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
11
12
12
13
export default function TeamSnippets ( ) {
13
14
const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function TeamSnippets() {
17
18
recipes : AssistantRecipeWithStats [ ] ;
18
19
} > ( GET_SHARED_RECIPES , {
19
20
variables,
21
+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
20
22
context : {
21
23
debounceKey : 'team-snippets' ,
22
24
} ,
You can’t perform that action at this time.
0 commit comments