PolicyEngine / policyengine-app

PolicyEngine's free web app for computing the impact of public policy.
GNU Affero General Public License v3.0
41 stars 109 forks source link

Migration to Tanstack Query(React-query) #2186

Open bharateshwq opened 3 weeks ago

bharateshwq commented 3 weeks ago

React Query Migration

Continuing the work from #2074, this issue focuses on migrating the entire application to React Query for improved management of server-client state.

How to Participate

  1. Create a new issue for each task listed below.
  2. Check off the box once the task is completed.
  3. Changes or enhancements needed for closed issues should be discussed here

Documentation Requirements

Each issue should include comprehensive documentation that covers the following:

Migration Tasks

  1. Country Layout

    • [ ] Convert <CountryIdLayout /> and its child routes:
      • [ ] /
      • [ ] /about
      • [ ] /jobs
      • [ ] /testimonials
      • [ ] /calculator
      • [ ] /simulations
      • [ ] /research
      • [ ] /research/:postName
      • [ ] /donate
      • [ ] /privacy
      • [ ] /terms
      • [ ] /profile
      • [ ] /profile/:user_id
      • [ ] /api
      • [ ] /blog/:postName (redirection)
  2. Additional Routes

    • [ ] /uk/cec
    • [ ] /uk/2024-manifestos
    • [ ] /:countryId/api_status
    • [ ] /us/trafwa-ctc-calculator
    • [ ] /us/state-eitcs-ctcs
    • [ ] /us/child-tax-credit-2024-election-calculator
    • [ ] /us/2024-election-calculator

If you need more information or clarification, please feel free to ask!