I also got laid off during parental leave. I had a strong feeling that it would happen but due to the stress of a medically dangerous pregnancy, I made the excuse that I didn't have the capacity to simultaneously focus on a preemptive job search. That was a bad decision.