Img Component

Loading "Img Component"
๐Ÿ‘จโ€๐Ÿ’ผ Our users have noticed this annoying behavior. Here's how you reproduce it:
You should notice the network loads the data for the ship. While that happens, our pending state is shown (great job on that again). Once the data is loaded, the component re-renders with the new data (even the img src gets updated properly). However, the img is still loading. This is because the browser waits for the new image src to be loaded before switching to the new image.
Our users are confused by this, and that's what we need you to solve using Suspense, the use hook, and a preloadImage utility.
The emoji will guide you through this one. Best to start in . Lots of this will feel similar to what we were doing with the getShip regarding the caching stuff!

Access Denied

You must login or register for the workshop to view and run the tests.

Check out this video to see how the test tab works.