Do you know how the inflation rate is calculated? Is this calculation relevant to you? Does it really measure the impact of price changes on your pocket?
You should sell & stop investing during a recession.
Inflation is up, the stock market is highly volatile, and GDP growth rate estimates keep changing. So, you should know how to protect your money in a recession.