-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
-
Not Needed
Currently compass-crud stores a number of items in it's component's states. Things like editing state, update error messages, and whether or not fields/documents are expanded.
This also might help prevent us from having bugs which can occur when reconciling a store's state with a components state within the render cycle which is something we currently do in `componentDidUpdate` in the `json-editor` component for instance https://github.com/mongodb-js/compass-crud/blob/master/src/components/json-editor.jsx
These are things which should be stored in a store, which we can persist when the plugin is unmounted. This would free us from keeping various plugins mounted while not visible: https://github.com/mongodb-js/compass-collection/pull/135 which is a performance hit.