we have routes that expect data like
{"foo": "always there", "bar": "optional"}
we also have routes that send such data.
How do we handle this in redux and typescript.
Should we change the backend to return default values for optional fields or should the frontend handle these things?
When we tried it with our existing types and state management, It just gave an error whenever it encountered undefined.