我想让moralis useTokenPrice在每隔5秒钟就能得到更新的价格,但是根据钩子规则,在useEffects中不能使用react钩子。我该怎么做。const symbol = props.symbol;
const result = await useTokenPrice({ // moralisReact Hooks must be called in a React
我试图通过currentPatientWalletId查询病人的咨询数据,这是一个变量,要传递给useMoralisQuery钩子,但是一旦我硬编码currentPatientWalletId it works.pleaseimport React,{useEffect,useState} from 'react';function Patie
(<Spinner>) : (<Text color={useColorModeValue('gray.800', 'gray.400')>Hi</Text) }
但是IDE警告我这一点:ESLint:React Hook "useColorModeValue" is called conditionally.React Hooks must be called in the exact same order in every compone