« first day (3174 days earlier)      last day (1778 days later) » 
00:00 - 17:0017:00 - 00:00

5:15 PM
Is there anyone having deep knowledge of React, like how React re-render stuff on state update
 
@RahulJain Nope. Such people do not exist in this universe.
Don't ask to ask, just ask.
 
@RahulJain I do not know. Perhaps their is a Discord somewhere for React?
 
it's weird to ask to ask
like, you're asking us to evaluate our own... "expertness" or ability to answer your question, before you've asked the question.
 
5:38 PM
Is MIT license / npm package available for use in commercial product? npmjs.com/package/ngx-color
 
the license is pretty easy to understand
 
roger wilco
 
last night I was trying to dig up an old project but I realized that I never kept it on Github, and I only ever worked on it within an SSH session, and that VPS was deleted (without my knowledge) years ago
so I think the entire project is really completely gone
very disappointing
 
user8729657
:( I hate that @forresthopkinsa, I deleted old projects before and I didn't realize the value of them until recently.
 
5:43 PM
not completely gone sir. It is still in your heart.
<3
 
@MadaraUchiha Ok, so in React, I am rendering something like this: <TriggerAdapter><Button /><DialogBox /></TriggerAdapter> The TriggerAdapter component goes through its children, renders only Button and on Button click, it shows DialogBox. Now in my main component, on changing state, this DialogBox isn't re-rendering. What should I do?
 
6:24 PM
@RahulJain Why would it?
Its state wasn't changed, only its parent.
React will not re-render the entire DOM tree under a changed component if it doesn't need to.
 
no, DialogBox's props are depending on main component's state
 
@RahulJain Interesting, I'm just heading out to eat, but paste your code here and I'll look at it in like an hour from now
 
nvm, the people who developed that TriggerAdapter thing is fixing it in next release. They were doing something like cloneNode(DialogBox) and then node.show or node.hide() on button click lol
@MadaraUchiha I hope you are understanding my english. And thank god, they replied about this bug or it would waste your time as well
 
7:22 PM
Question about react. I have a component wrapper that is just a regular js class. It has this:
render(key) {
		return <DownloadItem content={this.stats}/>
	}
this.stats changes every so often, how do I update DownloadItem? Usually I would use states and props, I can't because it's not a react component.
I don't want to call forceUpdate if possible. Any ideas?
Basically I need to use react states without making my class a component
 
7:40 PM
Is it possible mock a library when it is not available?
using jest
0
Q: Is it possible mock a library when it is not available?

I'll-Be-BackThe package is not on local development but it is available on production. Is there a way to mock the package even it is not exist on local? for example in index.js const list = require('/mnt/node/external-library'); console.log(list.getData()) How can I mock external-library and getData() ...

 
i'm sure it's possible
 
well, when running a test - it complain the library is not found.
 
did you mock it?
 
That is what I am trying to figure out, how to mock a library :)
 
you woul dhave to mock each method that you intend to use
 
7:49 PM
yep I get that
 
discord ppl may have solved my react issue, trying something different
 
@RahulJain Heh, yeah, that would do it.
Although, I probably wouldn't do it with a button to begin with
I'd use a label (as the button) and an invisible checkbox input, then use the CSS adjacent selector to show/hide the thing
@JBis Why is it not a React component?
 
@MadaraUchiha thats what they said. I am making it into a component now. Just gotta figure out how to prevent updates since the props will be changing extremely often and I dont want to crash. shouldComponentUpdate seems like a good idea.
 
How can one give VS code the intellisense smartness that Jetbrains IDE's have?
 
@JBis shouldComponentUpdate is the way to go. Alternatively, don't update the props so often.
@notatroll You use JetBrains' IDEs.
 
8:03 PM
Funny, how can I implement it into VS code.
 
Thats short for, "you don't" I think @notatroll
 
Explanation?
Is it because there isn't a way, because it'll make VS code slow, because nobody comes close to Jetbrains?
 
"How do I make internet explorer have all the goodness chrome has?". "You use chrome"
 
well now hold on
is it not possible for there to be a vscode plugin out there that does it?
 
You use chromium engine :|
Probably is Kevin, I was asking in case there was already one made.
 
8:06 PM
(I don't know what the answer to your question is, I am just trying to explain what Madara said)
 
i've never used jetbrains, so i have no idea what kind of sophistication you're looking for in your intellesense
 
Finding functions and methods in your code base
 
but i'm quite happy with the linting and auto completion that i get with typescript
 
If I have a static class called MySexyMethods and I do MySexyMethods:: ... I would get Intellisense on my sexy methods.
Talking about PHP but the questions related to all lanuguages
PHP and JS mainly
 
you're unlikely to find one plugin that does it for all of them
 
8:10 PM
@notatroll But srrsly why not use Jerbrains IDE?
 
jetbrains sucks
 
@KevinB don't you use sublime?
 
I would totally use Jetbrains IDE if it wasn't locked to PHP or JS
Phpstorm, Webstorm...
 
both can do either
 
no
i hate sublime
 
8:12 PM
Name one thing you dont hate
 
downvotes
(bet you expected me to say jQuery)
 
facepalm
@notatroll And you shouldn't need both. Node apps don't need php. PHP stuff you may need client side js, in which case PHPStorm supports it.
 
i use node with coldfusion
:)
vscode seamlessly transitions between both, and php
 
I personally use wix.com Works great. Did you know you can create stunning website in 3 simple steps....
 
i've even worked on java with it
 
8:15 PM
In what project do you need both PHP and more than client side JS?
 
i mean
noone said it was all one project
 
so then suck it up and open the other application. Or keep both open.
 
why, when vscode can do it all better
 
because JetBrains is better (even tho I have never used vscode)
The only thing that makes no sense to me is why all the JetBrains docs are in light mode.
my biggest complaint
TBH I don't know if vscode or jet brains is better, but I started on jetbrains and I like it a lot
 
lmao
-2
Q: 'XDomainRequest' is not defined Error in React

tjcI have the following helper function to create a cors request: function createCORSRequest(method, url) { var xhr = new XMLHttpRequest(); if ("withCredentials" in xhr) { xhr.open(method, url, true); } else if (typeof XDomainRequest != "undefined") { xhr = new XDomainRequest(); xhr.o...

 
8:23 PM
> Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Really SO? Trying to take valuable Q&As from us?
 
So... does anybody here have any experience with dialogflow api?
Never used chatrooms on SO before so apologize if this is not pc
 
@Kubie Just ask.
And welcome to chat :)
 
Just trying to do something simple... update entities for a df agent using api
and thanks :)
and google search has failed me... sadly
 
0
Q: I called then() on a TypeScript promise but it is still pending. Why is this? How can I get it to resolve?

ekolisHere is the index.ts script I am running (based on something I found on reddit): const path = require("path"); const sql = require("mssql"); const config = require(path.resolve("./config.json")); let db1; const connect = () => { return new Promise((resolve, reject) => { db1 = new s...

i used await and it gave me a promise. why? immediately self answers because it's a promise so i have to use then
 
> await keyword creates an implicit promise
but no, its the async keyword.
> An asynchronous function is a function which operates asynchronously via the event loop, using an implicit Promise to return its result.
 
9:10 PM
who blocks Google? That is a little crazy. — the upcoming IE9 might block it out of the box when its Tracking Protection is enabled. See Can't ask a question when IE Tracking Protection is enabled. — Arjan Feb 21 '11 at 8:14
 
 
2 hours later…
11:14 PM
@KevinB how tf does this guy have 1.6k rep
any idea why my setState callback wont trigger?
 this.setState({
            status: DownloadStatus.PENDING,
        },()=>{
            console.log("emitting");
            this.emitter.emit('init-complete')
        });
 
00:00 - 17:0017:00 - 00:00

« first day (3174 days earlier)      last day (1778 days later) »