Deductions & credits

Thank you.  As a theoretical question, what would happen in this same situation if the capital loss on this stock was much larger, say $10,000 and I had an additional $6,000 loss remaining to carry forward to 2023 and 2024.  Would this be applicable to the California state tax return?  Or would I continue to file Oregon state tax returns even though I no longer live there and get a tax credit?