mWater / mwater-visualization

GNU Lesser General Public License v3.0
3 stars 5 forks source link

Remove deprecated React context #461

Open grassick opened 3 years ago

grassick commented 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