TJSApplication Character Sheet odd behavior with unlinked tokens
Has anyone else experienced weird when using a TJSApplication as a character sheet with unlinked tokens? In my system, updating the base actor attempts to render the actor sheet for every token on the scene, regardless of whether that token's sheet was open previously. Every token whose sheet hasn't been rendered yet, will cause a fairly predictable "TypeError: An error occurred while rendering TJSDocSheet 45. this._element is null" - the sheet isn't mounted anywhere, so big surprise there. All other sheets will be made visible simultaneously. I think the SvelteApplication _render is missing the following check from foundry.js:
// Applications which are not currently rendered must be forced if ( !force && (this._state <= states.NONE) ) return;
// Applications which are not currently rendered must be forced if ( !force && (this._state <= states.NONE) ) return;
Which requires force=true to summon a closed sheet, as foundry seems like it will frequently render with
force=false
force=false
as a way to update any open sheets. Without this check, any of these "update" renders will cause undesired behavior.