With the wild prices if you need materials for actual paying work it makes sense to stock up some, but it could bite you if you get too much. Lumber prices are one example, when the prices were rising a working woodworker might have done well to buy a month or 2 supply while the prices were rising, but if they bought a years worth, they have probably lost money.
Steel is doing something similar. I went to buy some steel tubing for a project and they were telling me their price has gone up 165% since January. Will it go back down like lumber did? I'm guessing yes but will have to wait and see. In the mean time I'm dusting off my woodworking tools and only buying steel that I need right now for something. Some of my projects can be made from steel or wood and if a steel workbench is going to cost me $600 and a wood bench only $200, then wood is looking pretty attractive. Very happy I had been hitting up the cutoff pile before the price increase so I do have a bit of a stockpile, at least for things that only require short lengths.
Gas does this all the time, cheap gas, people start to travel and buy big, less efficient cars and trucks. Gas prices get high people stay home and eventually start to buy smaller more fuel efficient cars. Less gas being used means lower prices, rinse, repeat.
Things are pretty weird economically right now. Some of the increases I can understand, lumber and steel these came about from a stagnant construction industry getting back to work. Gas prices are people starting to get out and about again. Others like the toilet paper was just good old fashioned panic buying with the help of social media.
I'm glad I don't have to make any big financial decisions right now and having to guess what an irrational economy is going to do.