We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's always better to have a wrapper of axios, you can call it request method, which is calling axios inside your code.
request
A simple example of mentioned method:
export function request<T>( url: string, method: 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE', data: unknown = {}, headers: unknown = {}, params: unknown = {} ): AxiosPromise<T> { return axios({ method, url, data, headers, params, }); }
In the future, you can replace your axios method with anything else such as GraphQL, fetch, and etc... easily
Apple-Tv/src/components/MovieInfo/index.jsx
Lines 20 to 28 in 4702f76
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's always better to have a wrapper of axios, you can call it
request
method, which is calling axios inside your code.A simple example of mentioned method:
In the future, you can replace your axios method with anything else such as GraphQL, fetch, and etc... easily
Apple-Tv/src/components/MovieInfo/index.jsx
Lines 20 to 28 in 4702f76
The text was updated successfully, but these errors were encountered: