Alec Larson
Alec Larson
This is being tracked here: https://github.com/orgs/radashi-org/discussions/296
Two options: 1. Use `.bind()` 2. Use arrow function ```ts class Player { constructor() { // Option 1 this.defend = debounce({ delay: 100 }, this.defend.bind(this)) } defend() { this.game.apply(new DefendAction(this))...
This is fixed in the latest `radashi` version. See https://github.com/radashi-org/radashi/pull/293 for details. Radashi is an actively maintained fork of Radash. Check out [the readme](https://github.com/radashi-org/radashi#readme) and [community proposals](https://github.com/orgs/radashi-org/discussions?discussions_q=is%3Aopen+label%3A%22stage+0%3A+proposed%22+sort%3Atop).
The concern of this PR would be obviated if there was a `this.on()` method on `Remix.Handle`. I haven't seen this idea discussed anywhere. Essentially, `this.signal` would be added automatically. ```ts...