Battery (energy storage) technology is changing all the time. There used to be a few different basic types- disposable, rechargeable, lead-acid, nickel-cadmium and lately Lithium-Ion cells. Each of these types has various incarnations and variations with different characteristics as to charging rate, charging cycles, long-term storage capacity and longevity.
I, therefore in good conscience, will make any blanket recommendation that would apply to all batteries. I do have, in my studio, so many battery-operated devices- cameras strobes, speedlights, radio slaves and lord knows what else. The pencil sharpener in the office works on batteries. Based on this situation and experience and a few bad occurrences, here is my advice:
Never leave batteries in any camera or device in long-term dormant storage. There is no logical reason to do that. Take the time to do a bit of research on each type of battery you use in your more costly cameras and electronic flash gear. The battery manufacturer should have data on what percentage of charge must be retained to maintain battery health. When you find out the correct information you can devise a maintenance schedule.
If you don't look after your batteries they can fail at the most inopportune times or worse leak into the camera, battery grip, or the flash unit. If that happens, the cost of battery replacement will seem minuscule compared to the repair bill for the damaged camera or unit. It is best, never to charge a battery in the camera or unit if that possibility exists. Camera batteries are not physically large in size but it's amazing how hot, swollen and messy they can get if there is a short circuit if they are overcharged, or otherwise mishandled.
I am not certain that specific battery data is included in all camera and flash gear manuals. Aftermarket or 3rd-party batteries may have different characteristics as to charging and charge retention even the voltage and ampere/hour rating are the same.
Attaced is a shot of my battery testing station. Batteries became a major expense so I deced to monitor the usage more carefully. I keep the label maker handy because I date all new batteries and keep tabs on usage. I can check charging rates, etc. I am not the world's greatest authority of energy storage, far for that, but I have learned how to extend battery longevity, preclude unexpected battery failure, and avoid costly equipment repairs. A stitch in time saves nine- my mom used to say!