« first day (3754 days earlier)      last day (1177 days later) » 

1:55 AM
@Loktar do you or I have access to stackoverfiow?
 
2:33 AM
^ the site has a new design
 
 
2 hours later…
5:07 AM
Does anyone know how to implement this? stackoverflow.com/questions/65854452/…. I hope the question is clear enough. Thank you in advance. 🙂
 
@DavidLeal 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.
 
5:34 AM
@duhaime you got any idea, about how we can place markers using javascript api?
 
 
3 hours later…
ABC
8:33 AM
How to call api without using the useeffects
 
 
2 hours later…
10:38 AM
@JBis How do people use backpressure with node.js iterables
 
 
4 hours later…
2:18 PM
@Lime interesting
 
sup
alamobungus
@TylerH can I have a dynamic <p> element under a heading. Like say Im pulling a WeekOf item through AJAX call, and I want whatever that week is to be under my heading <h1>Weekly Report</h1>
 
2:53 PM
@Lime sneaky overfiow
 
@ShrekOverflow can you give an example?
 
3:17 PM
o/
 
\o/
 
3:48 PM
{
   "d":{
      "results":[
         {
            "Team":"Cowboys",
            "WeekOf":"2021-01-15",
            "OffensiveReport":"Insert something about the offensive report",
            "DefensiveReport":"Insert something about the defensive report",
            "SpecialTeamsReport":"Insert something about the special teams report"
         },
         {
            "Team":"Redskins",
            "WeekOf":"2021-01-15",
            "OffensiveReport":"Insert something about the offensive report",
This is my JSON being called, I try to populate it into HTML with Mustache.js like so
<span class ="dynamic" id="team-name">{{d.Team}}</span><br/>

Offensive Report: <span class="dynamic">{{d.OffensiveReport}}</span><br/>

Defensive Report: <span class="dynamic">{{d.DefensiveReport}}</span><br/>

Special Teams Report: <span class="dynamic">{{d.SpecialTeamsReport}}</span><br/>
N thats how it populates?
 
 
1 hour later…
4:52 PM
Hmm I notice that I can import from material ui using either:
import {IconButton} from "@material-ui/core";
or
import IconButton from "@material-ui/core/IconButton";
Which is better for tree shaking?
 
import {IconButton} from "@material-ui/core";
don't use the other one
 
Tooling auto-generates "the other one" thoug
 
@material-ui/core doesn't ensure that IconButton folder will exist, your IDE just found it
@paul23 yes, it's wrong
 
@JBis actually material ui documentation is explicit in that both are guaranteed to exist - for any component that is supposed to be accessible.
material-ui.com/getting-started/usage - in the quick start they even use that 'other" method XD
 
material-ui.com/guides/minimizing-bundle-size, I see. Most packages don't ensure more than @material-ui/core they seem to. In that case, I guess it is fine but I don't like it.
 
4:58 PM
material-ui.com/guides/minimizing-bundle-size this is quite confusing to me, especially since with cra yoiu can't just modify the build scripts.
so I wonder if CRA already does what is described there under option 2.
 
5:12 PM
 
 
2 hours later…
7:16 PM
Hi can anyobne give me some advice how to solve this problem
 
🔮
 
0
Q: Use Socket IO In Node js to update pug template

Pruteanu AlexandruIn one of the projects I use Node Js / Express with Pug.js,I want to use socket io to make everything live,all post actions and bring information or update. I tried to use socket io but all I managed to do was generate html code from js between 2 live users, but i can't figure out how i can use i...

 
7:32 PM
@KevinB lol
@paul23 CRA def tree shakes by default
 
8:16 PM
Ive come to the final decision
I am going to haze myself and try to do my whole project with template literals
 
8:42 PM
Can someone explain how "value" isn't defined
document.getElementById("app").innerHTML = `
<h1 class="app-title">Teams (${teamData.length} Results)</h1>
${teamData.map(function(value){
  return value.team

}).join('-')}
<p class="footer">Week of ${value.weekOf}</p>
`
 
 
3 hours later…
11:49 PM
var value;
document.getElementById("app").innerHTML = `
<h1 class="app-title">Teams (${teamData.length} Results)</h1>
${teamData.map(function(v){
  value=v;
  return v.team

}).join('-')}
<p class="footer">Week of ${value.weekOf}</p>
`
@bigchungus try that I'm not sure how to explain scopes
other then that simply doesn't work
 
lmao
 

« first day (3754 days earlier)      last day (1177 days later) »