- This new hook that will be available on React 19 replaces both the need for
useContextand for fetching insideuseEffect. - It can be called inside for loops and if statements
- But it still can only be called on client side
You can see how I used it here, inside an if statement and with both context and fetching from api examples.