Please read this thread:
http://www.tsptalk.com/mb/showthread.php?6760-TSP-Loan-and-repayment-with-taxed-income&highlight=loans

It really comes down to where your money is. If you put money into...