Sometimes works, sometimes doesn't...
You can try wiping down with Acetone or Lacquer thinner prior to sanding...Lacquer thinner seems to work a bit better in some instances...
Unless wax is added to the final coat of resin or gel coat, the resin will remain somewhat tacky and gummy...
Most of the time, though, you just need to have a LOT of sandpaper on hand...
You could also try having a stiff wire brush handy and remove some of the gummy mess from the sand paper with it...
Another tip is to take a few strokes, literally like 2-4 with the sand paper, clean with the wire brush and repeat...after a time, the gum will stop and the sand paper will cut better...I know, it sounds tedious, and it is, but if you have a lot to sand and a limited amount of sand paper, you have to make things work...