@tim I hope I can save you some time, because I have managed to make it work following your guidance. In fact, I got both the session state + rerun approach (with my delegated web request to Streamlit) and direct api call schemes working. The latter is by far preferable!! I had unfortunately got { mode: “no-cors” } in my fetch header (in this post).
The rerun method is one time step behind the data that comes from the API call which is returned to the component to display, so wouldn’t be suitable. (I have a timestamp on it.)
I will post my solution as a gist ASAP. In the meantime, anyone reading this who wants it can send me a DM.
Many thanks for your assistance!