@xuda.io/runtime-bundle 1.0.1059 → 1.0.1060

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29881,6 +29881,14 @@ func.datasource.del = function (SESSION_ID, dsP) {
29881
29881
  delete SCREEN_BLOCKER_OBJ[SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId + '_' + SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId];
29882
29882
 
29883
29883
  delete_pending_jobs();
29884
+
29885
+ for (const [ui_cache_key, ui_cache_val] of Object.entries(UI_WORKER_OBJ.xu_render_cache)) {
29886
+ for (const [cache_key, cache_val] of Object.entries(ui_cache_val)) {
29887
+ if (cache_val.paramsP.dsSession === dsP) {
29888
+ delete UI_WORKER_OBJ.xu_render_cache[ui_cache_key][cache_key];
29889
+ }
29890
+ }
29891
+ }
29884
29892
  }
29885
29893
  if ($(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav').length) {
29886
29894
  var ds_obj = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav')?.data()?.xuData.nav_params;
@@ -32341,8 +32349,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32341
32349
  const xu_ui_id = $elm.attr('xu-ui-id');
32342
32350
  let new_$div = UI_WORKER_OBJ?.xu_render_cache?.[xu_ui_id]?.[xu_render_cache_id]?.$div.clone(true);
32343
32351
 
32344
- if (!new_$div) {
32345
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = {};
32352
+ if (!new_$div || !new_$div.$div) {
32353
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { paramsP };
32346
32354
  nodeP.xu_render_xu_ui_id = xu_ui_id;
32347
32355
  nodeP.xu_render_cache_id = xu_render_cache_id;
32348
32356
  new_$div = await func.UI.screen.render_ui_tree(SESSION_ID, $container, nodeP, parent_infoP, paramsP, jobNoP, null, keyP, null, parent_nodeP, null, $root_container);
@@ -34394,7 +34402,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34394
34402
  UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
34395
34403
  }
34396
34404
  const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
34397
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
34405
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true), paramsP };
34398
34406
  nodeP.xu_render_xu_ui_id = xu_ui_id;
34399
34407
  nodeP.xu_render_cache_id = xu_render_cache_id;
34400
34408
  if (ret.xu_render_in_process) {