✅ – dmikester1 – 20-34 Jan 31
I have a route in my Node server with this code:
I cannot get the filled in
linesQCCheckStatus
array to get passed back.D
dmikester1•461d ago
The console logs are outputting correctly as I would expect. But in my client code where I make the call, it is always an empty array.
This is my client code where the call is made:
Wow, that was a super tough one to debug!!! Actually had nothing to do with await/async/promises. What I was doing wrong was handling the array like an object. So the console log looked fine, but it wasn't passing it back correctly. All I had to do to fix it was change the array to an object:
let linesQCCheckStatus = {};
UU
Unknown User•460d ago
230KMembers
View on DiscordMore Posts
Is a function that calls custom hooks also a custom hook?Let's say I have a custom hook `useLocaleStorage` implemented with `useState` and `useEffect` then ⛄Snowberb⛄ – 11-04 Jan 30I am trying to make a local insensitive search with accents, I want to make a match between `option`Adi – 08-58 Jan 30I have list of base64 urls 10-15 I am sending base64 urls directly to another nodejs backend service✅ – Sorrow – 21-19 Jan 29Hi, npm-related, why am is this error being thrown? I can read, but I can't make any sense✅ – Sorrow – 05-12 Jan 29Hi, I'm trying to program a navbar that scrolls with the user. This component has buttons that oncli⛄Snowberb⛄ – 12-54 Jan 27What's a better way to do this instead of nesting 2 loops?
```js
for (const template of instrumentTeReact and Fetch Api; Returning reacts index.html File instead of api endpoint?My Fetch Api with react is returning index.html instead of its data is there something with react I ✅ – Cory – 19-42 Jan 25Why does `addEventListener` log twice if I manually pass `e` to the callback, but only logs once if