635 B
635 B
45. Memory leak with js lifecycle
Date: 2024-04-09
Status
Accepted
Context
- The js resources are disposed at the end of js lifecycle
- Current listener in used is
beforeunload. However,beforeunloadwas unstable, resulting in memory leak.
Decision
beforeunloadwas replaced bypagehide, which is more reliable.
Consequences
- Memory leak problem in composer on TMail is resolved.