2013 Hyundai Accent - Idle and AC

car is idling too low and almost dies when the AC compressor comes on. This is a new condition with this car and never has had anything like this. No new tune up or other work other than front wheel bearing replacement. Ayn ideas?

Clean out throttlebody and idle air control valve if it has one.

May also be a bad throttle position sensor.

But first - is the check engine light on? If so, get the codes read at an autoparts store like autozone, it’s free.

If none of the above works… maybe the ac compressor is failing.