How do ionic compounds form?

Although formal oxidation states are useful concepts and we often indicate complete electron transfer by writing formulas like $L {i}^{+} {F}^{-}$, we should be aware that the actual amount of electron transfer in a stable ionic compound is only partial.