Hello I doing project web3 and i use wagmi. When i get listTokenUrl, after i want call each item to read tokenUri, but have error "Error: React Hook "useContractRead" may be executed more than once. Possibly because it is called in a loop. React Hooks must be called in the exact same order in every component render. react-hooks/rules-of-hooks"
There my code, tks so much .
I get list tokenID here
const { data: listTokenIdBaby } = useContractBabyListTokenIds({
args: address ? [address] : undefined,
});
After i map lisToken to get tokenUri
const dataBaby = listTokenIdBaby?.map(item => {
const { data } = useContractBabyTokenUri({
args: [item],
});
return data;
});