mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 23:47:55 -05:00
fix (#851)
This commit is contained in:
@@ -50,8 +50,8 @@ const useBridgeTransactionMessage = (
|
||||
}
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
// TODO - Do we need to account for undefined props here? Otherwise caching behaviour is not as expected?
|
||||
queryKey: ["useBridgeTransactionMessage", transaction?.bridgingTx, transaction?.toChain?.id],
|
||||
// transaction.status must be a cache key. PENDING -> Don't have correct params, READY_TO_CLAIM -> Have correct params
|
||||
queryKey: ["useBridgeTransactionMessage", transaction?.bridgingTx, transaction?.toChain?.id, transaction?.status],
|
||||
queryFn: async () => getBridgeTransactionMessage(transaction),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user