thirdweb-dev
js
BlogDocsChangelog

Adds options refetchInterval and retry params to useReadContract

#3273Merged
Comparing
feat-add-options-to-useReadContract
(
e099ef5
) with
main
(
923a5ec
)
CodSpeed Performance Gauge
+12%
Improvements
1
Untouched
8

Benchmarks

Improved

keccakId
packages/thirdweb/src/utils/any-evm/keccak-id.bench.ts
CodSpeed Performance Gauge
+12%
1.5 ms1.3 ms

Passed

encode tx (human readable)
packages/thirdweb/src/transaction/actions/encode.bench.ts
CodSpeed Performance Gauge
+2%
383.7 µs377.9 µs
encode tx (prepared method)
packages/thirdweb/src/transaction/actions/encode.bench.ts
CodSpeed Performance Gauge
+1%
339.5 µs337.6 µs
encode tx (contract abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts
CodSpeed Performance Gauge
0%
403.3 µs402.5 µs
encode tx (json abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts
CodSpeed Performance Gauge
0%
192.1 µs192 µs
units:toTokens(12345678901234567890n, 18)
packages/thirdweb/src/utils/units.bench.ts
CodSpeed Performance Gauge
0%
25.4 µs25.4 µs
units:toTokens(40000000000000000000n, 18)
packages/thirdweb/src/utils/units.bench.ts
CodSpeed Performance Gauge
0%
184.3 µs184.6 µs
units:toUnits("40", 18)
packages/thirdweb/src/utils/units.bench.ts
CodSpeed Performance Gauge
0%
33.9 µs34 µs
units:toUnits("40.0", 18)
packages/thirdweb/src/utils/units.bench.ts
CodSpeed Performance Gauge
0%
37.6 µs37.7 µs

Commits

Click on a commit to change the comparison range
Base
main
923a5ec
+12%
[SDK] Add refetchInterval and retry options to useReadContract hook
e099ef5
1 year ago
by gregfromstl
© 2025 CodSpeed Technology
Home Terms Privacy Docs