Skip to content

0.44.0 - `IStateLoadedHook`: server-side normalization of state read from storage

Choose a tag to compare

@dmitry-lebedev dmitry-lebedev released this 09 Oct 14:08
· 6 commits to main since this release

A state can normalize itself after it is read from storage, e.g. fill a member added after old records were written.

Added

  • IStateLoadedHook on an ISharedState: bool OnLoadedFromStorage() runs on the server once per entity activation, before [MetaInit]. Returning true persists the fix on deactivation, even without calls. Clients always receive the normalized state.