Error: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as