« first day (3622 days earlier)      last day (1325 days later) » 

1:36 AM
@ShrekOverflow lol someone beat me to it photopea.com
 
 
1 hour later…
3:04 AM
gimp
 
web devs of the world
you can't put have a footer of a website when the body is setup to infinite scroll
 
3:46 AM
Anyone help me how can I access a child element from a parent component in React?
 
So in my child (LocationFilter.js):
<div>
    ...
    <Select>....</Select>
</div>
Parent:
<LocationFilter />
I need to access the <Select> (which is in the LocationFilter) from parent
@JBis Whenever I try to use createRef(), React always says, cannot use ref on functional component
I even tried using React.forwardRef() but that error never goes away
 
ok so you are trying to access a child component
 
Yes
 
why are you trying to access a child component? what are you trying to do?
 
3:49 AM
The <Select> is a library, I need to remove the selected values from it
The library has some methods which I can use
 
what library? read their docs, im sure it will give you a clue
 
It has a "value" property
I was expecting that whenever its changed, the value of <Select> will change too
But it doesn't
 
 
3 hours later…
6:57 AM
Hi, in my react-native project, this.props is Object {}. Has anyone an idea why this happens?
 
@mapof Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
2 hours later…
user13780186
8:54 AM
Hello
 
2:33 PM
🚽
 
||🚽
 
💩
 
 
4 hours later…
6:24 PM
||💩
 
Invalid command! Did you mean: 🚽, 3, c? Try help for a list of available commands..‍.‍.‍.‍.‍.‍
 
Disappointing
command substitution for James when
 
6:39 PM
!!learn 💩 🚽
 
💩 has been added
 
!!afk
 
@KevinB bye Kevin B
@JamesBot KevinB is afk:
 
!!afk stop
 
HAMMERTIME!
@KevinB bye Kevin B
 
6:40 PM
Embrace the chaos
 
@KevinB you are such a boomer using that !! syntax
 
@JBis KevinB is afk: stop
HAMMERTIME!
 
7:23 PM
does anyone else use !!?
|| requires 2 hands, so inconvenient
 
Invalid command! Did you mean: rules, restart, remind? Try help for a list of available commands..‍.‍.‍.‍.‍.‍.‍
Invalid command! Did you mean: quiet, recurse, rules? Try help for a list of available commands..‍.‍.‍
 
wat
i only typed it once
is it the ,?
 
im running a dev instance rn
 
ah
 
ironically im fixing the feature that prevent that from happening when i start a dev instance
 
7:25 PM
!!echo stop
 
stop
HAMMERTIME!
HAMMERTIME!
stop
 
;)
 
7:53 PM
|| status
 
I am currently alive!
 
some bugs fixed
 
!!🐛
 
Invalid command! Did you mean: 🚽, 💩, 3? Try help for a list of available commands..‍.‍.‍.‍.‍.‍.‍.‍
 
8:09 PM
> "My code isn't working!"
> *just wrap it in a try catch, that'l fix it*
 
} catch (e) {}
 
2
Q: json.parse triggers cross-origin error in React / MERN

Davide LorinoI have a data structure that when I console.log it, it works just fine: console.log(JSON.parse([values.category2]).needed_skills); But when I pass the result of JSON.parse([values.category2]).needed_skills to a component within my application, the whole thing crashes with a cross-origin error. ...

can we talk about JSON.parse([values.category2])
 
what is going on there
 
the array gets stringified to just the json string
[] is pointless
but worse, it's confusing af
at first glance it looks like a syntax error
 
yeah that's what I thought
love that type coercion
 
8:13 PM
and secondly... lol, json.parse doesn't cause a cross-origin error
lol
the answer:
> For JSON.parse to work, you have to wrap it in a try-catch block.
 
wow it's even more convoluted than that
he's returning within the catch block
I hate strikethrough in here geez
It looked like he was returning within the catch but it's just weirdly formatted
wow he is returning an object property on what could be an empty array though
that answer is all sorts of exciting
 
the question is a year old
 
so it's not even worth doing anything about it
 
this website
 
8:16 PM
maybe a close vote
but it won't pass the review queue
 
just dv the answer
 
9:04 PM
!!blame
 
fail
 
i don't really get why json parse errors
it would be more consistent i think if it returned null
but i guess that creates issues with custom functions
 
not everything can be as good as jquery about handling swallowing errors
zz
what's the strikethrough
 
strike
three dashes ---
 
9:09 PM
lol
 
||> new Date('{}sefsd[[]sdf][sd')
 
@JBis "ReferenceError: Data is not defined" Logged: `` Took: 0ms
@JBis null Logged: `` Took: 0ms
 
@KevinB another string parser that when it fails it returns null instead of throwing
 
 
2 hours later…
10:51 PM
posted on September 15, 2020 by Lakshmana Pamarthy

 The Dev channel has been updated to 87.0.4263.3 for Windows, Mac and Linux platforms. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues.Lakshmana Pamarthy Google Chrome

 
@Feeds Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 

« first day (3622 days earlier)      last day (1325 days later) »