Skip to content

Instantly share code, notes, and snippets.

@abulka
Created May 17, 2020 11:46
Show Gist options
  • Save abulka/c84161fb7c8e873b5271215d5666c9eb to your computer and use it in GitHub Desktop.
Save abulka/c84161fb7c8e873b5271215d5666c9eb to your computer and use it in GitHub Desktop.
TodoMVC-ECS Housekeeping Trick Part 2
engine.system('reset-todos', ['housekeeping'], (entity, { _ }) => {
this.todos = []
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment