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 am encountering an issue in my Flutter web application where redundant event listeners are created every time the page is refreshed. I am using the socket.io package for Flutter to manage WebSocket connections, and it seems that a new listener for the event 'categoryUpdated' is registered every time the page is refreshed. This leads to multiple event handlers being invoked when the event is emitted, resulting in unexpected behavior.
I have also tried to use state management for that purpose but it still have the same issue.
Steps to Reproduce:
Navigate to a page in the Flutter web application.
Refresh the page multiple times.
Observe the console output or behavior of the application.
Expected Behavior:
Listeners for socket events should be registered only once and should persist across page refreshes. Subsequent refreshes should not result in the creation of additional listeners.
Actual Behavior:
Redundant listeners are created on each page refresh, leading to multiple invocations of event handlers when the event is emitted.
Hi, the problem itself has not fixed yet, but there a way to get rid of it, is that to refresh the page with browser's reload button not flutter's hot reload or hot restart
Hi, the problem itself has not fixed yet, but there a way to get rid of it, is that to refresh the page with browser's reload button not flutter's hot reload or hot restart
I am encountering an issue in my Flutter web application where redundant event listeners are created every time the page is refreshed. I am using the socket.io package for Flutter to manage WebSocket connections, and it seems that a new listener for the event 'categoryUpdated' is registered every time the page is refreshed. This leads to multiple event handlers being invoked when the event is emitted, resulting in unexpected behavior.
Steps to Reproduce:
Expected Behavior:
Listeners for socket events should be registered only once and should persist across page refreshes. Subsequent refreshes should not result in the creation of additional listeners.
Actual Behavior:
Redundant listeners are created on each page refresh, leading to multiple invocations of event handlers when the event is emitted.
Additional Information:
Code Snippet:
The text was updated successfully, but these errors were encountered: