-
-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor data revalidation #200
Copy link
Copy link
Open
Labels
priority: highit needs to be prioritized over issue which does not have any priority labelsit needs to be prioritized over issue which does not have any priority labelstype: enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
priority: highit needs to be prioritized over issue which does not have any priority labelsit needs to be prioritized over issue which does not have any priority labelstype: enhancementNew feature or requestNew feature or request
Type
Projects
Status
No status
Due to a recent react-router-specific upgrade #171 , some nested components down the routes can't perform automatic data revalidation.
useRevalidatorhook in case of an HTTP request. Ideally, data should be revalidated automatically making use of the router's action APIs. Consider accomplishing this.VotingPeriodcomponent data mutation (e.g.castVote()) is being triggered outside the app. Data fetching is happening in Router's loader on the corresponding route during the page load only.In such a case, we may need to perform the data revalidation for a route manually