Created
January 10, 2022 10:43
-
-
Save Georgegriff/ed65edbdeea9c1fe0ab6c1ebc2d06289 to your computer and use it in GitHub Desktop.
hooks mutations - saving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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