-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: manage token page #1309
base: main
Are you sure you want to change the base?
wip: manage token page #1309
Changes from 1 commit
f49f847
fecd2c9
47eb174
335aac6
e5ccc4d
f3f5ec3
de49b72
6030a55
9bf022a
ca02808
54bb6a7
42bfdd4
d884d23
a0b7eff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ import { extractGnoJSONString } from "@/utils/gno"; | |
import { zodSale } from "@/utils/types/types"; | ||
|
||
export const useLastSales = (networkId: string) => { | ||
return useQuery(["lastSales"], async () => { | ||
return useQuery(["lastSales", networkId], async () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. explicit query keys |
||
const gnoNetwork = getGnoNetwork(networkId); | ||
if (!gnoNetwork) { | ||
return null; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ import { extractGnoJSONString } from "@/utils/gno"; | |
import { zodToken } from "@/utils/types/types"; | ||
|
||
export const useLastTokens = (networkId: string) => { | ||
return useQuery(["lastTokens"], async () => { | ||
return useQuery(["lastTokens", networkId], async () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. explicit query keys |
||
const gnoNetwork = getGnoNetwork(networkId); | ||
if (!gnoNetwork) { | ||
return null; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import { extractGnoJSONString } from "@/utils/gno"; | |
import { zodToken } from "@/utils/types/types"; | ||
|
||
export const useUserTokens = (networkId: string, addr: string) => { | ||
return useQuery(["userTokens", addr], async () => { | ||
return useQuery(["userTokens", addr, networkId], async () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. explicit query keys |
||
const gnoNetwork = getGnoNetwork(networkId); | ||
if (!gnoNetwork) { | ||
return null; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use very explicit query keys prefixes to avoid conflicts in the future as these kind of conflicts are hard to pinpoint