State tax filing

So, If I understood correctly, I do not need to file part time "non resident" taxes for NJ or NY.

Wouldn't  each state want to tax during the Nonresident periods ?