You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a controller named SplashController that includes a method designed to wait 10 seconds before executing a task. If I navigate to another route before the 10 seconds elapse, the log shows that the controller has been deleted (which is correct). However, the issue arises when, after the 10 seconds, the task is executed despite the controller being destroyed.
Issue Details:
Controller: SplashController
Affected Function: Method that waits 10 seconds before executing a task.
Expected Behavior: If the controller is destroyed before the 10 seconds elapse, the task should not be executed.
Observed Behavior: Despite the controller being destroyed and this being logged, the task is executed once the 10 seconds pass.
Steps to Reproduce:
Implement a controller SplashController with a method that waits 10 seconds before executing a task.
Navigate to another route before the 10 seconds elapse.
Observe the log indicating that the controller has been deleted.
Wait 10 seconds and observe that the task is executed nonetheless.
Additional Information:
The expectation is that the task should not be executed if the controller has been destroyed.
This suggests that the destruction of the controller is not properly canceling the scheduled task.
The text was updated successfully, but these errors were encountered:
Issue Description in GetX
I have a controller named SplashController that includes a method designed to wait 10 seconds before executing a task. If I navigate to another route before the 10 seconds elapse, the log shows that the controller has been deleted (which is correct). However, the issue arises when, after the 10 seconds, the task is executed despite the controller being destroyed.
Issue Details:
Steps to Reproduce:
Additional Information:
The text was updated successfully, but these errors were encountered: