[1]. http://law.onecle.com/california/labor/2870.html [2].https://www.tradesecretsandtransitions.com/2017/01/californi...
What is often presented in other states is an agreement to not work for competitors that extends for maybe 6 months to 2 years after employment; that's not generally enforceable in California, except with some specific exceptions, generally around when a business owner sells their business.
This has been the case for many years, through judicial review as well as legislation.
Edit: I found an article on Slashdot that I remember reading at the time, which scared the crap out of me. About a programmer that made a bunch of GPL code on his own time, but his employer stole it back. https://developers.slashdot.org/story/02/03/21/0139244/bewar...
Some contracts will have a section regarding intellectual property, you either have to list everything you want to keep and make updates as needed or your employer can claim your IP especially if it is within the same realm of the work you do for your employer.