In this talk, I will recall briefly stacks of (global) shtukas and talk about two properties: outside the level, the proper direct image of the Satake sheaves is ind-lisse; at the level, the proper direct image commutes with nearby cycles. The last property is a joint work with Arnaud Eteve, and is used in the proof of local-global compatibility.