Custom Equality for Wrapped Values in Data Module
Does the Data module provide an easy way to "wrap" an existing value and pick which key use for Equal?
This is the "simplest" one I came up with:
This is the "simplest" one I came up with:
export class PlayerData extends Data.Class<Player> {
[Equal.symbol](that: PlayerData): boolean {
return Equal.equals(this.playerId, that.playerId);
}
}