She sounds tired or over-tired or needs sleep.
Once they start school.... kids get very tired, by the end of their day.
It is "work" for them, staying on cue, listening and be spot on. It is tiring for them.
Then they come home and are over-tired. Tired kids this age, get fussy and have nil, patience.
Give her a snack. Let her have quiet time and Deflate at home.
They need, to unwind.
Just like an adult would, after they come home from an all day hard day at work.
They want to just gel.
I have 2 kids. There are good kids but were like this, after Preschool.
And they need to transition.... to after school and coming home. It is a change of pace and demands.
Kids listen in school and once with their Mom they get un-glued. Because, they know that with Mommy, they can let their hair down.
Instead of assuming it is for "attention"... talk with her calmly. Tell her what you need to do, get in the car, and explain to her what is coming up. ie: going home, eating a snack, she can unwind and relax, etc.
Her acting like that to me, is her trying to tell you something.
And kids this age are not rocket-scientists about explaining how they feel.
And they don't even have astute communication skills.
So, talk with her.
Tell her "I know its hard and you don't like this... but we need to get home. The Police won't like if you are not in your seat buckled in. We can then go home, have a nice snack and you can relax. Hey, tell me about your day! Did you make anything today?...." and all the while you are calmly talking to her.... get her buckled in. Distract her with your talking and "commiserating" WITH her.... and/or using HUMOR to distract her and get her calmed down.
works for my kids.
Kids like.... and respond well to... when you "commiserate" WITH them.
When kids are being picked up and finish their preschool day, they often have TONS in their mind.... and are not good at 'organizing' their thoughts, much less their expressing that to you. The parent is often just 'rushing' and wanting to get back in the car. The kid then feels "rushed" and kids don't do well feeling "rushed." So... pace her and you. Talking WITH her as you go about getting in the car, etc.
My kids, always had TONS to tell me about their day when I picked them up from Preschool... and their thoughts are racing all over the place, because they are so excited. But then they sense Mommy is not "listening" to them at the same time... they need, to be paced. So focus... and do that.