We treat it as an ionic salt (even if you are perfectly right about SO42- containing covalent bonds). Trick is, SO42- is so stable we rarely have to care about its internal structure, and most properties of Na2SO4 are defined by the presence of Na+ and the stable counterion.