This is a quick release of a nerdy extension to solve the inconsistent Symbol-API provided by the runtime. Background being that the runtime applies initial values including a fresh copy of the Symbol API multiple times including when HypeSceneLoad, HypePrepareSceneForDisplay and HypeDocumentLoad runs. Meaning the runtime makes it hard on using the Symbol API consistently to store Symbol specific values like possible with
hypeDocument. The symbol API stays constant in a scene but you have to redefine any additions on each “On Scene Load” or HypeSceneLoad. You can’t store a symbol specific counter or anything across scenes in the Symbol API.
This extension caches the Symbol API and always returns the first cached version. This way you can rely on it being stable and cached. Hence, the name. It also gives you a new callback “HypeSymbolInit” fired when a symbol is cached (so only fired once).
This is still in Beta. Feedback welcome.
Read about it here: