Each return will reflect the income that you earned in that state while you lived there.
Most of the time, your income won't be double-taxed, even if the states involved don't allow tax credits against each other's tax liability.