Pouria Taherian If your hydrogel is pH or temperature responsive, the needle dispersion must have a different pH/temperature for preventing gelation. Once its injected, body temperature/pH would lead to its gelation. You can further read articles like this for more information
"Advances of injectable hydrogel-based scaffolds for cartilage regeneration
This question is too ambiguous because hydrogels are quite different. For stimulus-responsive polymer, the above answers are enough. For injectable hydrogels with two or more components and crosslinked by rapid gelation, you could apply some tools like dual-syringe applicator(Ref: Adv. Funct. Mater. 2017, 27, 1703174. DOI: 10.1002/adfm.201703174)