Tauffer-Consulting/domino

Refactor contexts and request

Closed this issue · 0 comments

Our contexts and request are poorly and sensitive, we need remove unused vars and functions from contexts, also we need move things to features or global context, for that we need map what is globally necessary or what can be use only in specific pages

For requests we need fix error handling with axios and also change for a betther request hook so we can use post / patch / delete requests. react-query is really similar with SWR and really easy to use, with that we can padronize erros, loadings, and any type of request