Closed
Description
ArraySchema
is accumulating a number of known issues that only a re-write of how to sync arrays is capable of fixing. This issue is meant to track new issues and edge cases when using ArraySchema
.
- Wrong callback order [Bug]: States are not triggered in the expected order #702
- [Bug]: Uncaught Error: ChangeTree: missing index for field "undefined" #689
- ArraySchema keys not updated when elements are removed schema#152
- ArraySchema: moving items results in wrong state schema#108
- ArraySchema push/splice/push, item added at wrong index. schema#94
- ArraySchema.splice() items to insert are ignored schema#101 (comment)
- ArraySchema: CLEAR + PUSH results in onAdd called twice schema#107
- https://github.com/orgs/colyseus/discussions/589
- [Bug]: ArraySchema.unshift() not working as intended. schema#170
(Fixing those is in the roadmap towards version 1.0
: https://github.com/colyseus/colyseus/wiki/Public-Roadmap)