Current behavior:
When changing the template of a route component, the state instance ("view model"?) gets it’s detached() and unbind() handlers called, but neither attached() nor bind() are called again - leading to lots of NPEs in our case.
When changing the template of a regular component, neither detached() nor unbind() are called.
Expected/desired behavior:
Route components should act like regular components: Either call all lifecycle methods during HMR or none.
I'm submitting a bug report
Please tell us about your environment:
Operating System: OSX 10.14.6
Node Version: 10.16.3
NPM Version: 6.9.0
JSPM OR Webpack AND Version webpack 4.41.0
Browser: all
Language: ESNext
Current behavior: When changing the template of a route component, the state instance ("view model"?) gets it’s
detached()
andunbind()
handlers called, but neitherattached()
norbind()
are called again - leading to lots of NPEs in our case.When changing the template of a regular component, neither
detached()
norunbind()
are called.Expected/desired behavior:
Route components should act like regular components: Either call all lifecycle methods during HMR or none.