Erstatte Redux med React Query
- Dominant language
- No language data
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Siden løsningen er bygget som en Altinn App, er det utstrakt bruk av Redux. Det er mye kode som er overflødig og kan erstattes med enklere moderne bibliotek, som for eksempel React Query fra Tanstack. Koden blir lettere å vedlikeholde, samt enklere å oppgradere.
React Query lar oss hente data på en intuitiv måte, og har innebygd funksjonalitet for ulike states (isLoading, isFetching osv.). Den har også caching, og vi kan invalidere data som ligger i cachen ved behov.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inventorying the existing Redux usage in the Altinn App and identifying the data-fetching and cache-invalidation flows that could move to React Query. Define the migration scope and completion criteria before changing code; the issue does not name files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, redux
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100