Cache crossfilter when embedding type is changed (#1439)

Fixes https://github.com/chanzuckerberg/cellxgene/issues/1433

When selection is deselected the world is reset to the universe the
crossfilter is reset to that in the resetCache, including the embeddings
in the layout_XY dim.  However, the embedding selection stays the same.

If the embedding selected is not the default, the embedding shown to the
user will be different than the embedding layout_XY in the crossfilter,
causing lasso selections to be made against the wrong embedding
coordinates
This commit is contained in:
Matt Weiden
2020-04-30 13:48:14 -07:00
committed by GitHub
parent cd821a0344
commit 40fbc42b13
+2 -1
View File
@@ -14,7 +14,8 @@ const ResetCacheReducer = (
nextSharedState
) => {
switch (action.type) {
case "initial data load complete (universe exists)": {
case "initial data load complete (universe exists)":
case "set layout choice": {
const { crossfilter } = nextSharedState;
return {
...state,