What To Actually Do When Markets Fall
The decisions that matter are made before the decline, because judgement is worst during one.

Every guide to market declines says not to panic. That is correct and nearly useless, because the people selling at the bottom are not people who failed to read the advice. They are people who discovered that their actual tolerance for loss was lower than their stated one.
The decision was made earlier
Your allocation between assets that fluctuate and assets that do not is the decision that determines your experience of a decline. It is made in calm conditions and tested in bad ones.
A useful exercise: look at what your portfolio would be worth after a fall of a third, as a number rather than a percentage. If that number would cause you to act, the allocation is wrong for you now, while you can change it deliberately.
The genuinely useful actions
Rebalancing back to your target allocation is a rule that mechanically sells what has risen and buys what has fallen, without requiring a view about the future. Setting the rule in advance is what makes it possible to follow.
In a taxable account, selling holdings at a loss to offset gains elsewhere can be worthwhile — subject to rules about repurchasing substantially identical securities within a defined window, which is a trap worth understanding before acting.
The cash question
The reason to hold an accessible cash reserve is not investment returns. It is that a job loss during a market decline otherwise forces the sale of assets at the worst moment. That reserve is what converts a market decline from a crisis into a statement you can ignore.
What history supports
Broad markets have historically recovered from declines given sufficient time, and the largest single-day rises frequently occur close to the largest falls, so being out of the market during a recovery has been costly.
That is a statement about the past and about broad diversified indices, not a guarantee, and not a claim about any individual security.
The honest summary
Have a plan written down while calm. Keep enough cash that you are never forced to sell. Rebalance by rule. Then leave it alone.
This is general information, not financial advice. Nothing here is a recommendation to buy or sell anything; speak to a licensed adviser about your own position.