If you are a deemed resident of Canada, and also establish residential ties in a country with which Canada has a tax treaty and you are considered to be a resident of that country for the purposes of that tax treaty, you may be considered a deemed non-resident of Canada for tax purposes.
You become a deemed non-resident of Canada when your ties with the other country become such that, under the tax treaty with which Canada has with the other country, you would be considered a resident of that other country and not Canada.
As a deemed non-resident of Canada, the same rules apply to you as a non-resident of Canada.