packages/react-hooks/src/useWeight.ts
Function useWeightImpl
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useWeightImpl (call?: Call | null): Result {
const { api } = useApi();
const mountedRef = useIsMountedRef();
const [state, setState] = useState<Result>(() => objectSpread({
// eslint-disable-next-line @typescript-eslint/unbound-method