I am sorry; I was caught up in various things and finally got a job after being laid off.
The gap was nearly 3–4 months after I was laid off. So, the big lesson I learned is to sharpen the sword daily.
It is mandatory to spend one hour going through the latest updates in the technologies we work with and another hour learning something new. Spend the remaining hours working on the tasks assigned by the company you work for.
Honestly, I was not up to date with the latest technologies, and after being laid off, I couldn't clear the interviews. It created a lot of anxiety. Only after a month or two did I start preparing sincerely. I spent a month preparing, identifying my knowledge gaps, and filling them.
I took a plain notebook and started thinking about and writing down the answers to interview questions as part of my preparation. For example:
Prepare as many architectural questions as possible and answer them with the help of AI. Document your answers in a database as an app (which also covers your app development practice) or write them down in your notebook.
Make it a daily habit to prepare one question a day, or at least three times a week.
Because nobody asks direct questions anymore; most interview questions are scenario-based.