[pdm-devel] [PATCH proxmox-yew-comp v2 2/2] loadable component: don't trigger reload when starting a task

Lukas Wagner l.wagner at proxmox.com
Thu Dec 18 15:20:03 CET 2025


The view will be reloaded anyways when the task viewer closes.

Usually, one wants to start a new task to produce/refresh some data
which should later be displayed in the component, so it makes little
sense to reload before the task actually finishes.

This avoids an issue with the previous commit. The double-load would
reset 'fresh_load' after the first load, leading to the new data not
being correctly displayed after the second load.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 src/loadable_component.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/loadable_component.rs b/src/loadable_component.rs
index 389ae28..7e26b24 100644
--- a/src/loadable_component.rs
+++ b/src/loadable_component.rs
@@ -333,7 +333,6 @@ impl<M, V: PartialEq, T: 'static + LoadableComponent<Message = M, ViewState = V>
         self.send_message(Msg::Spawn(Box::pin(async move {
             match command_future.await {
                 Ok(task_id) => {
-                    link.send_reload();
                     if short {
                         link.show_task_progres(task_id);
                     } else {
-- 
2.47.3





More information about the pdm-devel mailing list