As reported by @lessp on Discord, this fixes an issue where the tick hook would always execute the initial callback instead of updating with the latest given to it. The fix is to store the callback in a ref, and call that instead of calling the closed over callback directly.
Technically this is a breaking change for code relying on the behavior that the callback goes stale. That seems highly unlikely though, at least intentionally.
As reported by @lessp on Discord, this fixes an issue where the tick hook would always execute the initial callback instead of updating with the latest given to it. The fix is to store the callback in a ref, and call that instead of calling the closed over callback directly.
Technically this is a breaking change for code relying on the behavior that the callback goes stale. That seems highly unlikely though, at least intentionally.