onCleanup and props
I thought I knew how onCleanup works.. but I don't.
It would be great to understand the component lifecycle since the documentation barely explains how createEffect/onMount/onCleanup really work.
Here is the piece of code that I find strange:
It would be great to understand why props are null during cleanup, and why memos are not. And perhaps document it, since seems rather obscure.
It would be great to understand the component lifecycle since the documentation barely explains how createEffect/onMount/onCleanup really work.
Here is the piece of code that I find strange:
It would be great to understand why props are null during cleanup, and why memos are not. And perhaps document it, since seems rather obscure.
