When moving to a new state, exactly what date establishes residency? Our intent was to sell CA home and move to OR, but we moved our belongings a few days prior to sale.

We closed on the CA home 11/24, and moved our belongings 11/22 to OR because we couldn't wait till last minute.  But intent was always to move after we sold the house.  It matters because not sure whether to report sale of the home just to CA or both CA and OR.  We have to report recaptured depreciation.  The depreciation benefit was received in CA, not OR.