« first day (3897 days earlier)      last day (1034 days later) » 

12:39 AM
 
 
8 hours later…
8:46 AM
@Feeds If they have the capability to reach us, we won't be having anything to offer them is a mere fact.
 
9:05 AM
@TylerLazenby huh.
🤔
 
@TylerLazenby The spec says otherwise html.spec.whatwg.org/multipage/…
If you want an empty value, set an empty value
Also you should be checking the value of the select, not the option
 
@BenFortune I think that's the thing, hence I was doubting
 
Node js docs says that "calling function continues executing, while the promise is pending until it resolves"
 
I am curious if you get that result when doing select.value ... but too busy atm :P
 
So in the example above "Foo end" should have been displayed before "Inside promise handler", but it is the opposite
Can someone explain
?
 
the function got executed at the moment you created that Promise object
log: foo start
create promise P
-- put on stack
-- log: inside promise
-- run while
log: foo end

-> at each iteration, stack is examined. Until promise got resolved, nothing is done with P
pseudo "run time" code
 
9:31 AM
Could you please explain how the call stack works in this case ?
 
I have an object, how can I handle undefined values
```
let person = { name: 'John Smith' };
person.name // John Smith
person.age // undefined
```
I am using person.age ?? '' another suggestion?
 
that's one we're using.
@user123456789 you need to understand the structure behind the scenes. I tried to find a good resource on that. This one is okay'ish; darrylmendonez.medium.com/…
and, it's a great thing that you're trying to understand it. It's one of the positive traits that a developer should have. Many just see the code and adds it or uses the functions without comprehending it completely. Very good 👍
 
9:51 AM
I am stuck in the event loop and its phases. Do you know any reliable/accurate source to read about that ? I think NodeJs docs are written for experienced developers.
 
my google fu has been bad
was looking for that node doc because I've learned the process from that page only
 
10:33 AM
@KarelG awesome!!!
 
11:16 AM
Can anyone answer this question, please?
https://stackoverflow.com/questions/68017704/what-is-the-best-way-to-do-the-error-handling-in-react-using-axios
 
@CommonMan those 2 links from Ben is more informative tho
 
 
1 hour later…
12:34 PM
will read those too. (elobarated explanation...)
@KarelG
 
12:46 PM
Morning
 
12:58 PM
I made an edit on a post to fix a snippet/some grammar. And I have to wait till someone accepts it for it to go through. 20 Mins later (it stopped saying only visible to you until it is accepted) and someone with a lot higher of a reputation instantly made the same edit so does that just automatically go through for them?
 
1:12 PM
is await mandatory for an async funciton?
 
No
 
1:30 PM
@BeerusDev 2k or 3k rep privilige
@CommonMan you can have async function without await but you cannot have await in a function without async
 
great answer @KarelG
 
hey can someone help with angular json pipe, why it does not work?
<div class="container">
	here:
	<div>{{form }}</div>
</div>
^ this shows form as an object
<div class="container">
	here:
	<div>{{form | json }}</div>
</div>
^ but this does not output anything after "here:"
seems like passing to json pipe does not work
 
you need to add a space after {{ (just a convention quirk from my end :P )
idk why it should not work
is form a regular javascript object?
try to JSON.stringify it manually
 
1:48 PM
Swiped my reputation points right from me :(
Since I got downvote bombed trying to boost my RP by answering/editing but still can't ask questions idgi
 
eh
a rewarded edit is ... 2 points?
that's nothing with a good answer/question that can get 5 upvotes
also after that privilege you don't get that credit anymore
 
I am a long way from 2k
 
some have 1+ million reps already :P
idk where they find their energy to answer on stupid questions
maybe they like to have a lot reps
it's barely meaningful lol
kek, just checked new SO question again after ... months?
and got one stupid already - lack of research
0
Q: Is Spartacus store front end supports editing the payment method and saving the credit card?

Angular jsI'm Using Spartacus(2.0) front end as angular 9 so here my question is can we able to edit the billing address for the specific credit card card and edit the saved credit card ? does Spartacus supports to editing for the payment method? And by default we are using cyber source for payment process.

 
@KarelG it is angular like this <form #form="ngForm">
@KarelG i am getting this error error TS2339: Property 'JSON' does not exist on type 'UserSettingsFormComponent'
 
and you want to pipe that to json?
obviously you cannot pipe it to json
 
2:01 PM
yea i mean in a tutorial they did that :-(
 
can you share a link?
it could be that the tutorial is just bad :D
gotcha stamp a "w3schools" on that 😁
 
it is in pluralsight shall i send a code file
i watch 10 minute content and debug for 2 hours :-(
 
Pluralsight is nice
 
yeah, they have a lot great courses. Many of these got peer-reviewed beforehand
@jeea put on pastebin please
 
Can I change the default file type in VSC? So when I create a new file before saving it or anything, it already knows to be a .js or .html file instead of plain text?
 
2:06 PM
like in this slide they show this
 
ok, I am a bit surprised with that :)
you need to check the error
 
2:36 PM
|| mdn insertBefore
 
2:53 PM
ios14 and capacitor not allowing 3rd party to write cookies, how to fix this
 
3:04 PM
Does anyone know if there's a library that can allow cron job's duration to be updated whenever there is a change in a database?
 
DRP
Got downvoted this question: https://stackoverflow.com/questions/67980079/how-to-share-state-on-parent-hook-component-and-render-only-its-pertaining-hook

Did I really asked it that bad? Appreciate any input
 
!!shrug
 
¯\_(ツ)_/¯
 
are you sure that grey outline actually means the whole component was rerendered? Are you able to notice a performance difference between the two options?
This seems like a premature optimization kind of scenario
Store the state where it makes the most sense, let react do the optimization. If you find it has performance problems, you're probably misusing something
 
3:26 PM
@DRP I don't see any reason to downvote it
 
4:02 PM
@paul23 ya know, you wished for a sorted map before. Well I need that atm ...
damn
 
anyone know of a good drawing tool that can render a circle and an increasingly bigger crescent like the moon waxing and waning - I have the data, it's just a matter of sending to a library to draw. any suggestions?
 
@DannyF 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…
5:43 PM
hi .. i have the following interface.. I am trying to assign null to name but typescript complains... can i use name = null!, here??
export interface UserSettings {
	name: string;
	emailOffers: boolean;
	interfaceStyle: string;
	subscriptionType: string,
	notes: string;
}
^ interface
  defaultUserSettings: UserSettings = {
    name: null!,
    emailOffers: true,
    interfaceStyle: 'dark',
    subscriptionType: 'Annual',
    notes: 'here are some notes...'
  }
 
 
2 hours later…
7:16 PM
posted on June 17, 2021 by Srinivas Sista

The Stable channel has been updated to 91.0.4472.114 for Windows, Mac and Linux which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. 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 a

 
 
3 hours later…
9:56 PM
its funny how whenever i have work to do there's so many other things i want to do but when i dont have work i'm too lazy to do those other things
 
sid
10:11 PM
Hi guys, anyone knows if there is a way to log the URL that is currently using camera/mic ?
 
@sid 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.
 
posted on June 17, 2021 by Ben Mason

Hi, everyone! We've just released Chrome 91 (91.0.4472.114) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 

« first day (3897 days earlier)      last day (1034 days later) »