Why should I put a Schottky diode and a resistor between a USB connector and a TP4056 charger IC?
It is presumably to avoid power from the cell discharging into the USB port.
Particularly of the host/charger is powered off.
The 0.4 ohm resistor will help reduce the power dissipated within the IC at high charging currents.