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
axios μλ¬ λ°μ μ React Queryμ isError νλ‘νΌν°κ° true κ° λμ΄μΌ νλλ°, κ³μ false κ° λμ¨λ€.
if(isError) { console.log("μλ¬ λ°μ"); //ν΅μ μλ¬κ° λ°μν΄λ "μλ¬ λ°μ"μ΄ μ μ°ν }
const { data, isLoading } = useQuery( ['roobits', roomId], () => axios .get(`${process.env.REACT_APP_API_URL}/rooms/${roomId}`) .then((res) => res.data), { onError: (err) => { console.log('μμ² err', err); setErrPageOpen(true); }, //state μ²λ¦¬ } );
The text was updated successfully, but these errors were encountered:
nuuco
No branches or pull requests
- μ΄λ€ λΆλΆμμ λ¬Έμ κ° λ°μνλμ?
axios μλ¬ λ°μ μ React Queryμ isError νλ‘νΌν°κ° true κ° λμ΄μΌ νλλ°, κ³μ false κ° λμ¨λ€.
- μλ¬ λ©μΈμ§
- μλ¬νΈλ€λ§ λ°©λ²
- λ¬Έμ ν΄κ²°μ λμμ λ°μ λ νΌλ°μ€ λ§ν¬
The text was updated successfully, but these errors were encountered: