Skip to content

Commit

Permalink
feat(explorer): refetch transfers every second
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Jun 8, 2024
1 parent 6b9d494 commit 35ba347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/lib/graphql/documents/transfers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { graphql } from "gql.tada"

export const allTransfersQueryDocument = graphql(/* GraphQL */ `
query AllTransfersQuery @cached(ttl: 5) {
query AllTransfersQuery @cached(ttl: 1) {
v0_transfers(limit: 50, order_by: {source_timestamp: desc}) {
sender
normalized_sender
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/explorer/transfers/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
let transfers = createQuery ({
queryKey: ["transfers"],
refetchInterval: 2_000,
refetchInterval: 1_000,
queryFn: async () => (await request(URLS.GRAPHQL, allTransfersQueryDocument, {})).v0_transfers
})
Expand Down

0 comments on commit 35ba347

Please sign in to comment.