Subscribe on changes!

with jsx, Two <KeepAlive> nested will report an error `Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function`

avatar
Mar 16th 2022

Version

3.2.31

Reproduction link

github.com

Steps to reproduce

run -> click switch button -> click switch button again -> update Comp1.tsx file

What is expected?

hmr works fine

What is actually happening?

got error

runtime-core.esm-bundler.js:5483 
        
       Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function

app.tsx

      <KeepAlive>
        <KeepAlive>
          {showNoExcludeFirst.value?<Comp />:<Comp2 />}
        </KeepAlive>
      </KeepAlive>
avatar
Mar 28th 2022

After modifying the code inside the component,HRM to same problem occurs