Promice gets called twice (first with empty result, then with result) #4346
-
Beta Was this translation helpful? Give feedback.
Answered by
ekwoka
Aug 22, 2024
Replies: 2 comments
-
This only makes sense if you have something else also calling setPersons. What does load credits or whatever do? It's showing two totally different value types. One being an Object and the other being an array. So something is going on elsewhere on your code. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simonferndriger
-
Ah sorry, you are totally right - it was called elsewhere with a different parameter (did not recognize that it was an array instead of object, I just thought it was proxied) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only makes sense if you have something else also calling setPersons.
What does load credits or whatever do?
It's showing two totally different value types.
One being an Object and the other being an array.
So something is going on elsewhere on your code.