Build a rainy day fund. Determine how much cash you will need if you are out of a job and how long you think that will last, allocate some portion of that amount into low risk bonds. Russ way if you need cash you aren’t selling investments at a big loss.
If you have enough liquidity put some in real estate as a forced savings vehicle as it’s harder to liquidate than stocks. Then just sit out any coming storm.