Open grassick opened 3 years ago
React contexts are newly designed https://reactjs.org/docs/context.html and the old method is deprecated and removed in future React.
There are several types of context:
1) locale 2) table selection (mwater-expressions-ui) 3) add map layer (mwater-visualization) 4) global filter (mwater-visualization) 5) scalar expression tree decoration (3 functions) (mwater-expressions-ui)
Locale should probably just be a prop passed down everywhere.
Rest should be 4 separate contexts
React contexts are newly designed https://reactjs.org/docs/context.html and the old method is deprecated and removed in future React.
There are several types of context:
1) locale 2) table selection (mwater-expressions-ui) 3) add map layer (mwater-visualization) 4) global filter (mwater-visualization) 5) scalar expression tree decoration (3 functions) (mwater-expressions-ui)
Locale should probably just be a prop passed down everywhere.
Rest should be 4 separate contexts