abhsarma / milliways

MIT License
0 stars 0 forks source link

removing an option and then reintroducing the option does not function #21

Closed abhsarma closed 2 years ago

abhsarma commented 2 years ago

When an option is removed, and then reintroduced the plots fail to update...

abhsarma commented 2 years ago

The change to have gridData as a field to the multiverse object created this problem, as once an option is modified (by exclusion), the gridData field would change. Not sure if there's a better way of doing it, but currently I am just using a separate field gridDataAll which is never modified as input whenever a join or exclude operation is performed (see https://github.com/abhsarma/multiverse-vis/blob/db141d9f52591ef9ad2f57572663299069be690f/src/components/multiverseMatrix.js#L292)