Oct 14, 2023
Most people can't avoid this, since they're often using frameworks that store closures in a hidden registry in the background (looking at you, React). The closures have access to everything the component had access to at the moment it rendered.