`getSnapshot` utility
Proper support for sourceId