How does the tax thing work if you build the business while in CA, but get the capital gain while a resident of another state?
With US federal taxes, they actually tax you on the unrealized capital gain if you expatriate, but that's a much bigger change than changing state of residency within the US.