@kiroboio/web3-react-native-safe-transfer
Enumerations​
Interfaces​
Functions​
useCurrentMutableState​
â–¸ Const
useCurrentMutableState<T
>(state
): MutableRefObject
<T
>
Use this hook to mutate the .current value instead of creating new
Two use cases
1) For not adding state to hook deps 2) For getting updated(mutated) state version in async operations
Type parameters​
Name |
---|
T |
Parameters​
Name | Type |
---|---|
state | T |
Returns​
MutableRefObject
<T
>
useSwapRates​
â–¸ Const
useSwapRates(): void
Returns​
void
useWeb3​
â–¸ Const
useWeb3(__namedParameters
): IWeb3ReactContext
Parameters​
Name | Type |
---|---|
__namedParameters | Object |
__namedParameters.infuraKey | string |