It has happened to me so many times. I am trying to figure out something tricky, have spend considerable time without any success, cannot find any clues on the internet, give up and put the problem at the back on my queue.
Within a month or so, drops a new blog post or a Github PR or a new tool that does exactly what I want. Maybe I'm just lucky. Maybe I notice such things because Iโm looking out for them passively. Either way, it feels great when solutions just fall into my lap.