Spoiler Thread: Avengers Infinity War

I read something that's very interesting. In Doctor Strange the Ancient One said that she would view the future to see what happens but that she could never see beyond her death. Well Dr. Strange in Infinity War saw the one outcome where we win. So how did he see beyond the finger snap? If he died after the snap then he wouldn't have been able to see that one outcome and yet he did. I'm thinking he's in the soul stone as well. Or else the finger snap doesn't count as death so he was able to see that far ahead.