Your PR will not be preserved because you are with a Canadian citizen child, only if it is your spouse.
Time spent outside of Canada
You may also count the days spent outside of Canada in the following circumstances as days for which you satisfy the residency obligation:
OPTION 1. Accompanying a Canadian citizen outside Canada
You may count each day that you accompanied a Canadian citizen outside Canada provided that the person you accompanied is your
spouse or common-law partner or
parent, if you are less than 22 years of age