Skip to content
Data & APIs · Lesson 02 of 05 · Builds on Fetching data in a component

A reusable fetch composable

Turn the fetch pattern into useResource(), a composable that takes a string, a ref or a getter, refetches when it changes, aborts the previous request and cleans up with the scope.

Check what stuck

Get 2 of 3 right to finish the lesson.
0 / 3