react-geo
react-geo copied to clipboard
LayerTree does not need to store LayerTreeNode in the state
The LayerTreeNode does not need to get stored in in the state. In fact it is discouraged to store react elements in the store. This was causing typing issues. The generation of the nodes can be wrapped in a memoize function.