cartesi / explorer

Cartesi Blockchain Explorer
https://explorer.cartesi.io
Apache License 2.0
9 stars 12 forks source link

Investigate and disable re-running of hooks on block change event #156

Closed nevendyulgerov closed 1 month ago

nevendyulgerov commented 2 months ago

📄 Context

Currently, we are using polling for some of the graphql requests in the app. This leads to an increased number of http requests for the application. An example is the blocks page (https://explorer.cartesi.io/blocks) where every ~30 seconds new data is being retrieved, because we have a pollInterval set to 30000.

✔️ Solution

Disable poll intervals for all graphql requests.

🎯 Definition of Done