In a similar way to how ところ
(sometimes shortened to とこ) means ‘about to (A)’, or ‘on the verge of (A)’, when following the non-past form of a verb, when following the 助動詞（じょどうし） (auxiliary verb) た, ところ
will mean ‘just did (A)’.
To use this structure, make the past tense of any verb, and then add ところ
I just asked the teacher.
I just finished work. So I’ll head home soon.
While this expresses ‘just did (A)’, ていた
may be used when you would like to express that you were ‘just doing (A)’.
When the kanji form of 所（ところ） is used, it is often referring to an actual physical location, rather than a situation/standpoint. However, this is something that native speakers will sometimes mistake. Therefore, seeing the kanji form and the hiragana form are both relatively common.