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
88import CookbookTable from '../components/CookbookTable/CookbookTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function FavoriteCookbooks ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function FavoriteCookbooks() {
1718 user : { cookbooks : AssistantCookbook [ ] } ;
1819 } > ( GET_USER_SUBSCRIBED_COOKBOOKS , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'favorite-cookbooks' ,
2224 } ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
88import SnippetTable from '../components/SnippetTable/SnippetTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function MySnippets ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MySnippets() {
1718 user : { recipes : AssistantRecipeWithStats [ ] } ;
1819 } > ( GET_USER_SUBSCRIBED_RECIPES , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'favorite-snippets' ,
2224 } ,
Original file line number Diff line number Diff line change 99 GetRecipesSemanticallyVariables ,
1010 GET_RECIPES_SEMANTICALLY ,
1111} from '../graphql/queries' ;
12+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1213
1314export default function Home ( ) {
1415 const variables = useQueryVariables ( 'home' ) ;
@@ -18,6 +19,7 @@ export default function Home() {
1819 GetRecipesSemanticallyVariables
1920 > ( GET_RECIPES_SEMANTICALLY , {
2021 variables : variables as GetRecipesSemanticallyVariables ,
22+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2123 context : {
2224 debounceKey : 'search' ,
2325 } ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import CookbookTableEmptyFiltered from '../components/CookbookTable/CookbookTabl
88import CookbookTable from '../components/CookbookTable/CookbookTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function MyCookbooks ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MyCookbooks() {
1718 user : { cookbooks : AssistantCookbook [ ] } ;
1819 } > ( GET_USER_COOKBOOKS , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'my-cookbooks' ,
2224 } ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
88import SnippetTable from '../components/SnippetTable/SnippetTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function MySnippets ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function MySnippets() {
1718 user : { recipes : AssistantRecipeWithStats [ ] } ;
1819 } > ( GET_USER_RECIPES , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'my-snippets' ,
2224 } ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import CookbookTableEmptyFiltered from '../components/CookbookTable/CookbookTabl
88import CookbookTable from '../components/CookbookTable/CookbookTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function TeamCookbooks ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function TeamCookbooks() {
1718 cookbooks : AssistantCookbook [ ] ;
1819 } > ( GET_SHARED_COOKBOOKS , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'team-cookbooks' ,
2224 } ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import SnippetTableEmptyFiltered from '../components/SnippetTable/SnippetTableEm
88import SnippetTable from '../components/SnippetTable/SnippetTable' ;
99import { useFilters } from '../components/FiltersContext' ;
1010import useQueryVariables from '../hooks/useQueryVariables' ;
11+ import { PAGE_QUERY_POLL_INTERVAL_IN_MS } from '../lib/constants' ;
1112
1213export default function TeamSnippets ( ) {
1314 const filters = useFilters ( ) ;
@@ -17,6 +18,7 @@ export default function TeamSnippets() {
1718 recipes : AssistantRecipeWithStats [ ] ;
1819 } > ( GET_SHARED_RECIPES , {
1920 variables,
21+ pollInterval : PAGE_QUERY_POLL_INTERVAL_IN_MS ,
2022 context : {
2123 debounceKey : 'team-snippets' ,
2224 } ,
You can’t perform that action at this time.
0 commit comments