Skip to content

Commit

Permalink
Merge pull request #1895 from boucaud/fix-http-array-caching
Browse files Browse the repository at this point in the history
fix(httpdatasetreader): when caching array data, differentiate by class
  • Loading branch information
finetjul authored May 6, 2021
2 parents d893487 + ca128a5 commit 438b21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IO/Core/HttpDataSetReader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function vtkHttpDataSetReader(publicAPI, model) {

// Internal method to fetch Array
function fetchArray(array, options = {}) {
const arrayId = array.ref.id;
const arrayId = `${array.ref.id}|${array.vtkClass}`;
if (!cachedArrays[arrayId]) {
// Cache the promise while fetching
cachedArrays[arrayId] = model.dataAccessHelper
Expand Down

0 comments on commit 438b21b

Please # to comment.