Hey Alexander, I am not sure you are going about this the correct way. Dev Mode is NOT synchronous and it functions just like production mode. There is another reason why you are getting your results. It may be because the requests take longer in Dev Mode and your client has time to send the request, then clear, the load.
The Solution you posted is creating a split point which will download the code the first time possible solving the timing problem but does it work if you keep loading? (not refreshing but keep loading the activity without a refresh?)
You should try clearing the table and then creating a request to the server.
I may not understand you question so please let me know if I am misunderstanding you somewhere
You shouldn't use this solution. GWT.runAsync is used to create a code split point and not to execute things asynchronously.
As far as I know these code split points act synchronously in dev mode but asynchronous in production/compiled mode. I think this is because in dev mode there are no .js files (each code split point will result in a separate .js file when you compile your app) that can be downloaded asynchronously using GWT.runAsync. So in dev mode GWT.runAsync gets somehow (synchronously) emulated.Do you really want to code split these single methods?
Yeah ok maybe I missunderstood your solution example. But your general idea is correct:1.) do the first async request2.) in the callbacks onSuccess method of the first request execute the second async request.So basically you are chaining async requests.
Thats the way to go, or try to fix your code in a way that its not dependent on the order of async request results.