Implementation Details - what was your thought process as you changed the code?
[x] Added a getResources function to utils/queries.js
[x] Removed the useEffect and axios on the Resources component
[x] Used the useQuery hook on the Resources component
Related Tickets & Documents (Optional)
Closes issue #143.
Added tests?
Will add tests sooon :D
[ ] π yes
[ ] π no, because they aren't needed
[ ] π no, because I need help
Added to documentation (readme.md or contributing.md)?
[ ] π readme.md
[ ] π contributing.md
[x] π no documentation needed
[ ] π I'd like someone to help write documentation, and will file a new issue for it
What type of PR is this? (check all applicable)
Context
Paired with @peoray to refactor the /resources page to use React Query (https://react-query.tanstack.com/docs/guides/queries#query-keys)
Screenshots/Recordings (if there are UI changes)
No UI changes!
Implementation Details - what was your thought process as you changed the code?
[x] Added a
getResources
function to utils/queries.js [x] Removed the useEffect and axios on the Resources component [x] Used theuseQuery
hook on the Resources componentRelated Tickets & Documents (Optional)
Closes issue #143.
Added tests?
Will add tests sooon :D
Added to documentation (readme.md or contributing.md)?