Kozz
Kozz
RReactiflux
Created by Kozz on 1/1/2023 in #help-js
bfrisco – 00-42 Jan 1
In this case it makes a lot of sense (writing packets)
11 replies
RReactiflux
Created by Kozz on 1/1/2023 in #help-js
bfrisco – 00-42 Jan 1
Ah okay, I do see comments on top of each now. It must just be a visual thing like you said. Nice to know about the variable scoping though.
11 replies
RReactiflux
Created by Kozz on 1/1/2023 in #help-js
bfrisco – 00-42 Jan 1
Ok, thanks
11 replies
RReactiflux
Created by Kozz on 1/1/2023 in #help-js
bfrisco – 00-42 Jan 1
From a functional standpoint
11 replies
RReactiflux
Created by Kozz on 1/1/2023 in #help-js
bfrisco – 00-42 Jan 1
If no variables are defined inside of it, is it just meaningless then?
11 replies
RReactiflux
Created by Kozz on 12/18/2022 in #help-js
✅ – bfrisco – 14-14 Dec 18
I think this will work, TY
11 replies
RReactiflux
Created by Kozz on 12/18/2022 in #help-js
✅ – bfrisco – 14-14 Dec 18
yeah, my actual code is like this now:
stats = {
...stats,
[deviceType]: {
...stats?.[deviceType],
// etc
}
}
stats = {
...stats,
[deviceType]: {
...stats?.[deviceType],
// etc
}
}
11 replies
RReactiflux
Created by Kozz on 12/18/2022 in #help-js
✅ – bfrisco – 14-14 Dec 18
ah, thanks. i'd still want to preserve any other values, but can use optional chaining with destructuring i believe
11 replies