What happens if electron is powered through usb cable continuously and battery is also connected?

hi all,
if electron is powered with usb cable continuously and battery is also connected to electron any damage would occur ?

Nothing bad should happen.

thanks for reply
does the electron shuts down the charging of battery when battery is fully charged
and
if electron is powered through only VIN and GND pins (from external power adapter) does the battery connected to electron gets charged

Yes, the PMIC circuit does control the charging and keeps the LiPo at a safe level when permanently powered.
And yes, when powered via USB the power goes through a diode to Vin and from there to the PMIC, so yes Vin will charge the LiPo just as well.

Thank you ScruffR

Good Info!!