And if the pokemon that got the boost from baton passed stockpile use spit up/swallow without using stockpile itself?
You can get the stat boost, put not the stockpiled Spit Up or Swallow use.