This is a callback function you can provide to iterate over all the stashed states that will be invoked per entry
Save the local modifications to a new stash
Loop over all the stashed states and issue a callback for each one
Remove a single stashed state from the stash list