Closed katox closed 10 years ago
This issue does not have enough information. Please provide a complete minimal example. Thanks.
This is not a bug, it is a known limitation. Components are identified with their functions. If you want life cycle methods to be called you must use different functions. For example instead the multimethod could return the function to invoke instead of immediately invoking it. I'll probably cover this subtle point in a later tutorial.
It seems that if the multimethod indirection is used, component's lifecycle methods are not called.
Let's say we are altering test-view1 (and similar test-view2). if called via multimethods, the same way as in the Om tutorial, then will-mount and did-mount methods are skipped (render-state work normally).
This doesn't work properly:
If changed from multimethods to a switch it does work normally (lifecycle methods call for view1 and view2):