react-geo icon indicating copy to clipboard operation
react-geo copied to clipboard

LayerTree does not need to store LayerTreeNode in the state

Open simonseyock opened this issue 4 years ago • 0 comments

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.

simonseyock avatar Feb 22 '21 07:02 simonseyock