Do photovoltaic power generation must first enter the battery before entering the load

The current entering the battery and then releasing it will cause certain losses and reduce the lifespan of the battery. So does the inverter have a function of allowing current to be directly used by the load without passing through the battery for charging and discharging? In fact, this process can be achieved, but it is not achieved by the inverter, but automatically by the circuit supply.