Apple has state based branches registered in many states that it does business: https://opencorporates.com/companies/us_ca/C0806592/statemen...
These are so irrelevant to the California corporation that Apple has argued in court that there’s no corporate nexus in Delaware and so litigation there is not a valid venue: https://finance.yahoo.com/news/judge-single-apple-store-make...
It didn’t work, but the ruling was based more around the existence of a retail store there than anything else.