Skip to content

Commit

Permalink
Merge pull request #1727 from oasisprotocol/mz/fix
Browse files Browse the repository at this point in the history
Use custom query key for validators map
  • Loading branch information
buberdds authored Feb 4, 2025
2 parents a3053b1 + 24d5f98 commit 918054a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1727.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Use custom query key for validators map

- Avoid throwing t.normalize is not a function error
1 change: 1 addition & 0 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,7 @@ export const useGetConsensusValidatorsAddressNameMap: typeof generated.useGetCon
{
...options,
query: {
queryKey: ['consensusValidatorsAddressNameMap', network, params],
staleTime: options?.query?.staleTime ?? 5 * 60 * 1000, // Defaults to 5 minutes
...options?.query,
},
Expand Down

0 comments on commit 918054a

Please sign in to comment.