More Sanity Checks on apps (possibly only in IDE)

There are a number of sanity checks that could be added that would help in debugging common issues. This could be triggered by an IDE button that does a series of sanity checks, rather than happening at run-time.

  • Event function not hooked up to component

One that pops up pretty frequently in the forum is not hooking a function up to the event in the component. This would be similar to the reverse check that already happens, when a function is hooked up but doesn’t exist.

  • Calling an event handler function instead of passing the function itself

Another check could be when setting/adding an event handler, warning if they call the function instead of passing in the function. There might be rare situations where that’s what they wanted, but for newcomers that’s generally the wrong thing to do.

7 Likes