Open
Description
Connecting multiple browsers to the same app almost works but it appears that whatever the most recent browser connected takes over control of the app.
Run the app flutter run -d web-server.
Open in Chrome and wait for it to load.
Save an edit to the application source code.
In the terminal press “r” to Hot Reload the app.
The reload happens in Chrome.
Open in Firefox and wait for the second instance of the app to load.
Save an edit to the application source code.
In the terminal press “r” to Hot Reload the app.
The reload happens in Firefox but Chrome remains in the previous state.
CMD ISSUES:
- Upon running further test I noticed that when the app is launched from the CMD line, it appears that the apps works for n-1 browsers. For example, If I open the app in 4 different browsers, and try performing a hot reload, 3 out of the 4 browser reload as expected but one remains in the previous states. I also noticed an error in the logs stating "No pending Completer found".
VSCODE ISSUES:
- When launching the app from VsCode, I also found some issues connecting to multiple browsers but the issues are different than the above. Upon connecting the 2nd browser, the page does NOT load and the app connection is dropped (app crashes). In the logs I noticed an error related to
addPubRootDirectories
.