-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Context
The existing full-stack-fastapi-mongodb frontend code has common functions that are repeated several places throughout the code. Many of these exist in useEffect hooks or on component generation.
- removeFingerprint
- redirectTo
- isLoggedIn
Are a few variables and functions that exist that are best suited to consolidation
Definition of done
Investigate key points to reduce variable/function duplication.
All identified points are consolidated into central files or directories.
Pitfalls
- Creating custom react Hooks could lead to unintended consequences
- Introduction of reductions could lead to regressions if not properly tested