Changeset ac19a0c for frontend/src/Components/Hooks/useGet.js
- Timestamp:
- 01/13/24 23:19:50 (9 months ago)
- Branches:
- master
- Children:
- e85a562
- Parents:
- e9b4ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Components/Hooks/useGet.js
re9b4ba9 rac19a0c 12 12 console.log("url od get " + uurl) 13 13 await axios. 14 get(uurl ).then((res) => {14 get(uurl, {maxRedirects: 0}).then((res) => { 15 15 setData(res.data); 16 }).catch((err ) => {17 console.log(err )16 }).catch((error) => { 17 console.log(error) 18 18 }) 19 19 .finally(() => { … … 26 26 getData(url); 27 27 }, [dep, url, changed]); 28 28 29 29 return { 30 30 data,
Note:
See TracChangeset
for help on using the changeset viewer.