Weed & Breastfeeding

is there any way to be able to use weed and still be able to breastfeed? not during feeding but afterwards maybe? and for people who use it medicinally, if you can't breastfeed do you just have to use formula? i know nothing on this topic and was wondering.