And if you believe a rate hike will happen but fail to control inflation due to various trade wars and hot wars, while stocks go down due to large correction on a small number of companies who accounted for most of the growth metrics...?
Then you have to time the market. Cash or short-term treasuries right now, moved into long-term treasuries when rates finished going up, moved into stocks when the economic damage becomes apparent. Getting the timing right is left as an exercise for the reader.