Tram-One / tram-one

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

Update effect #122

Closed JRJurman closed 5 years ago

JRJurman commented 5 years ago

Summary

To better match React's hook's functionality, useEffect now takes in a list of triggers which will cause an effect to cleanup and re-trigger if it has been updated.

Luckily, this was a fairly easy and simple change. Included in the PR are integration and unit tests.