I am stuck on mobx : “4.15.7”
I get this error:
Uncaught TypeError: props.apiStore.data.entries is not a function
I found this issue: https://github.com/mobxjs/mobx/issues/1424
.entries() is also affected!
Non working code:
return Array.from(props.apiStore.data.entries()).map((entry) => {
let key = entry[0]
let values = entry[1]
return (<HeatPumpsTable apiStore={props.apiStore} gridName={key} products={values}/>);
})
apiStore:
@observable data: Map<string, IProduct[]> = new Map<string, IProduct[]>([]);
How to correctly iterate apiStore.data to render its elements?