And if you're flying from outside the US, you will need to claim your bags, go through US immigration and customs, and re-check your bags at SEA, then claim your bags and go through Canadian immigration and customs at YVR.
On the return, you will go through US preclearance at YVR.