Widget coexistence

375
1
11-10-2016 11:44 AM
JacobNosal
New Contributor III

I am developing a custom WAB widget that needs to coexist with other widgets in the same application. Currently, I have two widgets, call them A and B respectively. 

  •   Open widget A > close widget A > open widget B > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" >close widget B > open widget A > html doesn't render, events are registered.
  • Open widget B > close widget B > open widget A > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" > close widget A > open widget B > no errors are encountered and widget works as desired.

Has anyone experienced a similar problem?

Regards,

Jacob Nosal

0 Kudos
1 Reply