This implementation is based on the useQuery from react-query pattern. The developer configures a promise which will be use to fetch when specific conditions are met. This pattern can be used for different api without having to duplicate code or doing inharitance.
This implementation is based on the
useQuery
fromreact-query
pattern. The developer configures apromise
which will be use to fetch when specific conditions are met. This pattern can be used for different api without having to duplicate code or doing inharitance.