I’m with TexasGurl, non-compete agreements can and do happen after you leave employment.
Of course they are enforced after you leave but only under certain circumstances. Once payment stops you have been laid off and that is when non-competes stop. USSC ruled that the company then no longer finds value in your services and non-competes fall apart. Non-competes usually accompany severance packages that stipulate continued non-compete agreements, but when you are laid off they company has no grounds to enforce the agreement. BTDT, got the t-shirt.
Nevada voided non-compete agreements for hourly employees on October 1, 2021. They no longer apply. Not sure if other states have done the same.