Skip to content

Refactor data revalidation #200

@gratestas

Description

@gratestas

Due to a recent react-router-specific upgrade #171 , some nested components down the routes can't perform automatic data revalidation.

  1. In some components, we do it manually using the useRevalidator hook in case of an HTTP request. Ideally, data should be revalidated automatically making use of the router's action APIs. Consider accomplishing this.
  2. Some components may not explicitly handle data revalidation in response to user interaction. For example, in the VotingPeriod component 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.
- Article (route)
    |__ArbitrationDetails
         |__VotingPeriod

In such a case, we may need to perform the data revalidation for a route manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highit needs to be prioritized over issue which does not have any priority labelstype: enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions