Skip to content

Instantly share code, notes, and snippets.

@tfiechowski
Last active January 8, 2021 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfiechowski/e75290dafa60e4470dafd759c9355000 to your computer and use it in GitHub Desktop.
Save tfiechowski/e75290dafa60e4470dafd759c9355000 to your computer and use it in GitHub Desktop.
function updatePhotos(itemsUpdates) {
const { toReset, toUpdate } = getItemsToResetAndUpdate(itemsUpdates, photos);
setPendingUpdates(toReset, toUpdate);
performUpdates();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment