We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a507c commit 9e4f5b7Copy full SHA for 9e4f5b7
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@colyseus/schema",
3
- "version": "4.0.10",
+ "version": "4.0.11",
4
"description": "Binary state serializer with delta encoding for games",
5
"type": "module",
6
"bin": {
src/decoder/strategy/Callbacks.ts
@@ -85,7 +85,7 @@ export class StateCallbackStrategy<TState extends IRef> {
85
const collection = (instance as any)[propertyName] as TReturn;
86
87
// Collection not available yet. Listen for its availability before attaching the handler.
88
- if (collection === null || collection === undefined) {
+ if (!collection || collection[$refId] === undefined) {
89
removeHandler = this.addCallback(
90
instance[$refId],
91
propertyName,
0 commit comments