Sorry if the title is hard to understand, because it's definitely a weird problem.
I think this screenshot best explains what's going on, and it makes no sense to me in every sense of programming. Regardless of whether a PL is interpreted or compiled, I would expect two lines within the same function to evaluate in consecutive order.
Not in this case, however:
You can clearly see in this side-by-side screenshot that the line I would have expected to print after the first line (consecutively speaking) actually printed/evaluated first.
This is a problem for me because the entire reason I am calling the index.getObject
method within the React component constructor is to use the response in the object itself. So now all the React components are just using destName = null
.
Can anyone explain this behavior? (bonus points if there's a way to make sure the first line evaluates first)
additional picture to explain behavior: