I keep a single spare of most stuff to avoid down time and have done so for about 10 years.
Rear mech, chain, chain ring, brakepads, wheel, BB, headset, pivot bearings, spare rim, front and rear tyres, some spokes and nipples (6 per wheel usually) a front and rear tyre, grips, cable inners and out, hydro hose, fork and rear shock service kit, shock bushes.
I am down a GX cassette at the moment, but both bikes were given new in Feb 2021 and I refuse to pay the outrageous prices that are currently about.