how to force update parent child relation

i have a custom driver function rotating an obj but the objs child seems to update randomly… is there any way to force update “parent child relation” after the rotation is applied ?