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 searched the opened issues and there are no duplicates
Describe the bug
I want to perform some operations when the tab or browser is closed. So I intended to do some operations in page.on_disconnect. However, when I refresh the page, the on_disconnect function is also called, which is something I don't want to happen.
Duplicate Check
Describe the bug
I want to perform some operations when the tab or browser is closed. So I intended to do some operations in
page.on_disconnect
. However, when I refresh the page, theon_disconnect
function is also called, which is something I don't want to happen.Code sample
Code
To reproduce
Run example code.
Expected behavior
I hope that the on_disconnect function will only be called when the page or the browser is closed.
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 11
Flet version
0.25.1
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered: