netcreateorg / netcreate-itest

Developing the 2.0 version of NetCreate
https://github.com/netcreateorg/netcreate-2018
Other
0 stars 0 forks source link

Async Errors with FiltersPanel? #229

Open benloh opened 1 week ago

benloh commented 1 week ago

Logging this as an issue for now. It's currently not reproducible.


Earlier when trying to start the app up for the day with a new project and no log in (e.g. using http://localhost:3000/ not http://localhost:3000/#/edit/FOCUS-B-LPJ, I encountered a debugger error that typically is triggered by an error in the lifecycle init.

The error is shown under init.jsx bootstrap as

Image

This seems to be related to FiltersPanel render function as well as the UpdateFilteredNCData function. The App State FILTERSDEFS was probably not set yet. FILTERDEFS.nodes and FILTERDEFS.edges were undefined Later the FILTEREDNCDATA state was also odd.

Checking for the undefined objects and skipping the render/function call allowed the FiltersPanel to render and the lifecycle to continue.

So it's likely a case of FiltersPanel async loading happening before FILTERDEFS and FILTERDNCDATA were initiated.