Skip to content

Instantly share code, notes, and snippets.

@Georgegriff
Created January 10, 2022 10:43
Show Gist options
  • Save Georgegriff/ed65edbdeea9c1fe0ab6c1ebc2d06289 to your computer and use it in GitHub Desktop.
Save Georgegriff/ed65edbdeea9c1fe0ab6c1ebc2d06289 to your computer and use it in GitHub Desktop.
hooks mutations - saving
// And inside of the save function, removed existingTodos() as its not a function anymore
{
save: () => {
const existingTodoKeys = Array.from(existingTodos.keys());
/// ...
const existingTodoValues = Array.from(existingTodos.values());
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment