Path: blob/main/release-content/migration-guides/system_buffer_queue.md
9328 views
------SystemBuffer now requires queue() to be implemented, instead of apply(). apply()'s default implementation now delegates to queue().
This is to ensure that a SystemBuffer used in an Observer context applies its changes. In most cases, if apply() does not change the World structurally, apply() and queue() can mutate the World directly in the same way.
If apply() does not change the World structurally, apply() should be changed to queue():
If apply() does change the World structurally, implement both apply() and queue(). To queue structural changes to a DeferredWorld, add the structural changes to its command queue, accessible via world.commands().