0

I use this code when make a request to server. Inside request function i do this:

const menu = this.props.location.state.menuItemDishesMap; //get Map() value from props
const order = {
  person: { id: 1 },
  menuItemDishMap: menu, //pass it to order object that goes to server
};

console.log(order); //make sure that my Map() object went to server

This is what console.log() says:

console.log

But, when I see developer tools, this Map() is always empty.

developer tools

Have no idea why. Thanks for any help

3

0

Browse other questions tagged or ask your own question.