Happened to TP a couple years ago and is in process with microcontroller chips and will be happening soon with food.
People hear story on news, think there will be empty shelves, buy a multi-year supply of boxed Mac n Cheese, the shelves are indeed empty, more people think there will be more empty shelves, repeat.
I know a small time ham radio kit mfgr whom bragged about blowing the cost of a new house on a shipping pallet of '328 chips because he has to secure his supply chain if he wants to eat and everyone knows the shelves will soon be empty. Of course that has three effects: He has to store and finance a four year supply of chips, he total wiped the supply in his home country so nobody in that country can buy a '328, and he's stuck using a 2009-era chip until at minimum 2024, when his competitors will be shipping products based on early 2020's chips. On the positive side he gets to eat while competitors whom didn't hoard can't ship product. Of course the only reason there is a shortage is because he cornered the market before someone else did it.
I absolutely guarantee we have more than enough wheat to continue to set new record levels of obesity; while I also guarantee there will be empty food store shelves in the near future.