eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

Tile: do not trigger onLoadDataCancel() when tile is reloaded #1216

Closed bschwarzent closed 6 days ago

bschwarzent commented 1 week ago

When a tile is reloaded while the previous load call is still running, the previous future is cancelled explicitly. However, because we immediately schedule a new load future, it is not necessary to call the onLoadDataCancel() callback. If that callback is used to show an error message, it would even be wrong! To achieve this behavior, we set a special execution hint on the previous future to indicate that the cancellation happend explicitly and does not need to be handled by the tile.

392970