Oh yeah, that makes sense.
So you mean:
const url = urlComponent.value
const options = {
headers: {
}
};
fetch(url, options)
.then(function(response) {
response.text().then(function(text) {
textArea.setValue(text)
});
});
And no need for a TemporaryState. Not sure why I didn't think of that