Closed alcercu closed 1 month ago
The changes incorporate the addition of a refetch interval to useQuery
in multiple query files, aiming to enhance data updating frequency. REFETCH_INTERVAL
is imported from a constants file and passed as the refetchInterval
option to ensure periodic automatic data refreshing.
File Path | Change Summary |
---|---|
.../useClassicAppealQuery.ts |
Added REFETCH_INTERVAL import and refetchInterval in useQuery options. |
.../useCourtDetails.ts |
Added REFETCH_INTERVAL import and refetchInterval in useQuery options. |
.../useDisputeDetailsQuery.ts |
Added REFETCH_INTERVAL import and refetchInterval ; removed redundant queryKey parameter. |
.../useEvidences.ts |
Added REFETCH_INTERVAL import and refetchInterval ; removed redundant queryKey parameter. |
.../useJurorStakeDetailsQuery.ts |
Added REFETCH_INTERVAL import and refetchInterval ; removed redundant queryKey parameter. |
.../useVotingHistory.ts |
Added REFETCH_INTERVAL import and refetchInterval ; removed redundant queryKey parameter. |
In the fields of code where queries roam,
A rabbit sets the data's home.
A refetch now with intervals bright,
Keeps the data ever right. π
No longer shall the updates wait,
Timely as the garden gate. πΏπ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | f144bcc6aa1e2796ec8f7de9bfcbef20990c9e15 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/6687ac174cfc8e000837a84c |
Deploy Preview | https://deploy-preview-1644--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | f144bcc6aa1e2796ec8f7de9bfcbef20990c9e15 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/6687ac17231168000845ced0 |
Deploy Preview | https://deploy-preview-1644--kleros-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | f144bcc6aa1e2796ec8f7de9bfcbef20990c9e15 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/6687ac17b7f2da0008f70876 |
Deploy Preview | https://deploy-preview-1644--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit f144bcc6 and detected 5 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Duplication | 5 |
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
PR-Codex overview
The focus of this PR is to add a
refetchInterval
to various queries in hooks to enable periodic data updates.Detailed summary
refetchInterval
touseEvidences
,useClassicAppealQuery
,useDisputeDetailsQuery
,useCourtDetails
,useVotingHistory
, anduseJurorStakeDetailsQuery
hooksREFETCH_INTERVAL
from "consts/index"REFETCH_INTERVAL
for therefetchInterval
propertySummary by CodeRabbit
New Features
Enhancements