Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Promisify all model.tsx functions #264

@mtfranchetto

Description

@mtfranchetto

Description

Before introducing react-query we have handled every request to an API using callbacks (see model.tsx).
This is not a best practice for many reasons, and most of all, callbacks cannot be used with react-query, as they library expects a Promise from the data loader function.

Following what has been done in #175 we should replace all model.tsx functions still using callbacks, and make them return Promises, which can then be used by react-query for an efficient data retrieval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtLegacy issues or new tools adoption

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions