Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Warn when a component doesn't return DOM (or doesn't return anything) #158

Closed JRJurman closed 3 years ago

JRJurman commented 3 years ago

Summary

Currently, when a component doesn't return anything, Tram-One fails trying to process effects. We should have logging if there is no tagResult here (or anywhere else where we try to make a tag, this might be the only place though)

https://github.com/Tram-One/tram-one/blob/15536a5801ad32b2a03cc570268c1047f4dab4c3/src/process-effects.js#L19