Skip to content

Update useFetch hook #3019

Open
Open
@wlthomson

Description

@wlthomson

Is your feature request related to a problem? Please describe.

Update useFetch hook to improve existing lookup logic.

Describe the solution you'd like

Refactor useFetch and calling code according to SOLID principles.

Implementation

  • Update hook to return function for fetching remote data.
  • Improve modularity by using DI for error handling and response mappers.

Describe alternatives you've considered

Leave as is.

Additional context

N/A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: productionBug was found or believed to be in a live releaseDocs: not neededEffort: smallSmall effort story/task, estimated 0-2 daysPriority: normalType: RefactorThe issue relates to restructuring code without affecting functionality (hopefully)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions