Skip to content

Commit e015f9e

Browse files
committed
Move block list and block details query to new backend
1 parent b81af37 commit e015f9e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

frontend/src/queries/useBlockListQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const BlocksQuery = gql<BlockListResponse>`
3333

3434
export const useBlockListQuery = (variables: Partial<QueryVariables>) => {
3535
const { data, executeQuery } = useQuery({
36+
context: { url: useRuntimeConfig().public.apiUrlRust },
3637
query: BlocksQuery,
3738
requestPolicy: 'cache-and-network',
3839
variables,

frontend/src/queries/useBlockQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export const useBlockQuery = ({ id, hash, eventsVariables }: QueryParams) => {
115115
const { data, fetching, error } = useQuery<
116116
BlockResponse | BlockByBlockHashResponse | undefined
117117
>({
118+
context: { url: useRuntimeConfig().public.apiUrlRust },
118119
query,
119120
requestPolicy: 'cache-first',
120121
variables: {

0 commit comments

Comments
 (0)