Is a bonus earned and received in one state, possibly taxable in a new state if you move a month after receiving the bonus and live in both states in the same year?

I live in Washington state with no income tax and I will receive a bonus in May while living in WA for work performed in WA. Lets say it is a sizeable bonus and that no state income tax is withheld. If I move to NY a few months later in August, will I owe some amount of NY state income tax on that money at the end of the year or is it not taxed because it was received in Seattle for work in Seattle?