If a switched GFCI protected outlet is required, and the switch will be near a sink (above a counter-top), should the switching be done the load side of the GFCI outlet? (e.g. for a garbage disposal) Seems there are two ways to do it:
Switch hot from panel to line of GFCI outlet, use that as the switched outlet. Detailed here: https://diy.stackexchange.com/a/16849/11812
Wire direct from panel to line side of GFCI, then switch the hot on the load side of the GFCI to a 2nd receptacle (and neutral back to load on GFCI). Detailed here: https://diy.stackexchange.com/a/28625/11812
The 2nd option protects the switch, and is more work. My questions are:
Is that a good idea?
Is it required by code? (California)