Skip to content

Commit

Permalink
Move block list and block details query to new backend
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Jan 16, 2025
1 parent b81af37 commit e015f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/queries/useBlockListQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const BlocksQuery = gql<BlockListResponse>`

export const useBlockListQuery = (variables: Partial<QueryVariables>) => {
const { data, executeQuery } = useQuery({
context: { url: useRuntimeConfig().public.apiUrlRust },
query: BlocksQuery,
requestPolicy: 'cache-and-network',
variables,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/queries/useBlockQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const useBlockQuery = ({ id, hash, eventsVariables }: QueryParams) => {
const { data, fetching, error } = useQuery<
BlockResponse | BlockByBlockHashResponse | undefined
>({
context: { url: useRuntimeConfig().public.apiUrlRust },
query,
requestPolicy: 'cache-first',
variables: {
Expand Down

0 comments on commit e015f9e

Please sign in to comment.