Photonics radar & improved avionics? The Russians & Chinese both have problems with the current stable of AESA radars and avionics as compared to the west and you think they'd bridge and surpass the West in a decade? Any grounds for this optimism?
No, the Russians and Chinese are on par with the West when it comes to AESA radars. I'd dare say even India has caught up, let alone Russia and China, although we don't yet have a fully operational fighter jet radar, unlike the other two. For example, our prototype radar can already track 100 targets, which is equivalent or better than most Western radars. This was a problem for both countries the previous decade.
The Russians have developed highly competitive radars for both PAK FA and Mig-35 and are now developing a radar for Flankers. The Chinese have done the same with J-10, J-20 and J-11D, also developed one for the JF-17. All these are now basically production grade radars, and this is more or less equivalent to what the US has done. Otoh, Europe has only 1 operational radar, with only 1 other being production grade.
As for photonics, the Russians and Chinese have bigger jets, so they will happily install a rudimentary 500-600Kg radar that will easily surpass anything that's not on an equivalent Western aircraft. For example, the Rafale and Typhoon can't handle 600Kg radars obviously. So what you may see being released on the British Tempest or French FCAS in 2040, the Russians and Chinese will likely release it on the PAK FA and J-20 by 2030.
When it comes to lab work, the West is obviously ahead, but due to the size difference of aircraft, the Russians and Chinese can bring in better capability to bear much earlier. Ultimately, what you operate is what matters. I mean, what does it matter if a Russian radar weighs 100Kg more if it has an extra 20Km detection range with better data?