As you can see im accessing the ui. I have to do it because im coming from a worker thread which throws an event.
I have a problem now because of this line:
In this function I throw another event on a worker thread which ofcourse now isnt possible since im on the UI.
How can I leave the ui again after accessing it?
basically im loading a reactive stream which im getting from my backend and im updating my ui depending on the incoming data.
I have to use ui access here otherwise the data would not get set on the component. Currently im using a vaadin-dropdown-menu
to present my data. A big problem I have is that no events are fired from the vaadin-dropdown-menu if I select a value which is
already selected.
This is why I check if the current value is equals the new value and if that is true I throw my own event. But the problem
here again is that Im currently in the ui acces when im doing it and im getting an IllegalStateException (but only if
I explicitly try catch it. If I dont The UI is just not working correctly namore).