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
I find weird that the data return from useSWR this :
config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …} data: {nbMusician: 3, nbGroups: 2, nbEvents: 1} headers: {content-length: '42', content-type: 'application/json; charset=utf-8'} request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …} status: 200 statusText: "OK" [[Prototype]]: Object
it should be only the data from that type :
type data: { nbMusician: number; nbGroups: number; nbEvents: number; };
The text was updated successfully, but these errors were encountered:
We need to do like this :
const { data: musiciansList, error } = useSWR('/musicians', (url) => authAxios.get(url).then((res) => res.data), );
Sorry, something went wrong.
No branches or pull requests
I find weird that the data return from useSWR this :
it should be only the data from that type :
The text was updated successfully, but these errors were encountered: