gramene-search 2.35.0 → 2.35.1

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.
package/dist/index.js CHANGED
@@ -8126,12 +8126,13 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
8126
8126
  // The expressionStudies resource is otherwise fetched only when a top-level
8127
8127
  // expression view (exprViz/expression/export) is on — but this per-gene
8128
8128
  // Expression detail also needs it (the Paralogs sub-tab's experiment list and
8129
- // the atlasExperiment selection both derive from it). Self-fetch on mount so
8130
- // opening the detail populates the studies even when no such view is enabled.
8129
+ // the atlasExperiment selection both derive from it). Fetch it here when it is
8130
+ // missing or stale: it is persisted, and a browser that cached the list before
8131
+ // studies were added to the release would otherwise keep offering the old list.
8131
8132
  (0, $gXNCa$react.useEffect)(()=>{
8132
- if (!props.expressionStudies && props.doFetchExpressionStudies) props.doFetchExpressionStudies();
8133
+ if (props.expressionStudiesShouldUpdate && props.doFetchExpressionStudies) props.doFetchExpressionStudies();
8133
8134
  }, [
8134
- props.expressionStudies
8135
+ props.expressionStudiesShouldUpdate
8135
8136
  ]);
8136
8137
  const studies = props.expressionStudies && props.expressionStudies[Math.floor(gene.taxon_id / 1000)];
8137
8138
  const inGxa = props.searchResult.expressed_in_gxa_attr_ss;
@@ -8248,7 +8249,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
8248
8249
  ]
8249
8250
  });
8250
8251
  };
8251
- var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)('selectConfiguration', 'selectGrameneParalogs', 'selectExpressionStudies', 'selectUiViewState', 'doRequestParalogs', 'doFetchExpressionStudies', 'doSetExpressionState', $9e29a4f60318db7a$var$Detail);
8252
+ var $9e29a4f60318db7a$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)('selectConfiguration', 'selectGrameneParalogs', 'selectExpressionStudies', 'selectExpressionStudiesShouldUpdate', 'selectUiViewState', 'doRequestParalogs', 'doFetchExpressionStudies', 'doSetExpressionState', $9e29a4f60318db7a$var$Detail);
8252
8253
 
8253
8254
 
8254
8255