fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

FuseJS exported class constructor called twice #1160

Open trusis666 opened 6 years ago

trusis666 commented 6 years ago

Reported in forum.

Fuse 1.8.1 MacOs High Sierra

Isuue:

In Fuse Studio, when app builds, message from constructor appears twice in console.

Build completed in 4.77 seconds
[Viewport]: Density changed, reifying
[Viewport]: im called
[Viewport]: im called

Code to reproduce:

MainView.ux

<App Model="MyApp">
</App>

MyApp.js

class MyApp {
   constructor() {
     console.log('im called');
   }
}
export default MyApp;
drslem commented 6 years ago

I was not able to reproduce the issue on Windows with 1.8.1

It does however also happen for 1.6.0 (first release of new FuseJS model) and 1.7.0 on macOS. While this doesn't make the problem any less annoying it means that it is at least not a recent regression.