Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4138

Refactor React frontend to deduplicate redundant functions

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • farmgen-2024.next
    • Affects Version/s: None
    • Component/s: 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: