VEuPathDB/web-monorepo

Remove searchTree (derived state) from redux store

Closed this issue · 0 comments

Derived state does not belong in the redux store. Not only is it an anti-pattern, it is also causing a delay in some rendering since it is dependent on static/all-data-loaded, which depends on other resources being loaded.

See

searchTree: getSearchMenuCategoryTree(
state.ontology,
state.recordClasses
),
};
. Turn this transformation into a selector function.