i got stuck working with the photospicker api, which was very annoying but it taught me more about async functions and how they work. this is quite a difficult concept to grasp when learning to code. but basically; the key takeaway for me was : don't trigger ui changes from inside async operations - trigger them from state changes instead.