mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 12:38:11 +08:00
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:
@@ -14,7 +14,8 @@ const ResetCacheReducer = (
|
|||||||
nextSharedState
|
nextSharedState
|
||||||
) => {
|
) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case "initial data load complete (universe exists)": {
|
case "initial data load complete (universe exists)":
|
||||||
|
case "set layout choice": {
|
||||||
const { crossfilter } = nextSharedState;
|
const { crossfilter } = nextSharedState;
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
|
|||||||
Reference in New Issue
Block a user