- useMemo Hook
- Dependency Array
- contexts
React-query
- Fantastic video on react’s issues (and how react-query addresses them). But in particular, the video was great at summarizing react briefly https://www.youtube.com/watch?v=OrliU0e09io
- understanding mutations and query invalidation:
- most basic ways to set and fetch data using react-query:
- useQuery for fetch, takes a query key and a function that returns a promise
- useMutation for setting, takes a function that performs the mutation
- other useful react-query functions: