I would not spray WD40 on any equipment that needs proper lubrication. WD40 will vapourise and leave the equipment dryer then when it was.
My magic formula is using Pam regular and spray it on, I use it on door hinges all over. I have been using it since my 1st season of camping. I discovered it by luck on the beach on the old bike chain, it is great for salt water on the chains. Its also handy because every kitchen has some. Mezola oil also as good. Can't be the buttered type, it will make it realy sticky after a while.
I had a door at my house that was always squeeking because it was an outside opening door with outside hinges. Did it 3 years ago and so fare still good.
One farmer was talking to me one day that his conveyor was squeeking a lot and nothigs he was using stoped it, and maybe it was like hinges it could not stop. He tried it and he ran to the store to get more, it was the first time his hay conveyor never sqeeked.
Its the only lubricant I have been using around the camper, other then 5th wheel grease.