It works fine. React Dev Tools give the right information for state.selectedOption. However, when trying to use it to access state.options it throws this error:
Uncaught TypeError: Cannot read property 'length' of undefined
at AbstractMutableList.get (kotlin.js:23508)
at backend.js:7715
at Array.forEach ()
at Bridge._inspectResponse (backend.js:7711)
at Bridge._handleMessage (backend.js:7592)
at listener (backend.js:92)
The specific portion of the code where that happens looks like this:
Object.defineProperty(ArrayList.prototype, 'size', {get: function () { return this.array_hd7ov6$_0.length; }});
I got a fairly simple setup that looks like this:
It works fine. React Dev Tools give the right information for state.selectedOption. However, when trying to use it to access state.options it throws this error:
The specific portion of the code where that happens looks like this:
Object.defineProperty(ArrayList.prototype, 'size', {get: function () { return this.array_hd7ov6$_0.length; }});
Anything wrong with my setup?