Follow

This produces memory leaks in JS:
window.addEventListener('message', this.onMessage.bind(this));

React w/ Hooks allows to have add/removeEventListener close together, so this can be avoided easier.

More here:
nolanlawson.com/2020/02/19/fix

Sign in to participate in the conversation
Uranium Lane Social

Uranium Lane social family