« first day (4917 days earlier)      last day (255 days later) » 

00:50
Lol what the heck is this conversation

Kevin Boomer

Oct 16, 2020 at 15:32, 16 minutes total – 36 messages, 5 users, 0 stars

Bookmarked Oct 16, 2020 at 15:51 by user7886229

 
3 hours later…
03:21
 
9 hours later…
12:21
how to learn angular?
@vadiraj 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.
 
3 hours later…
15:02
when should we use templateUrl and when only template in @Component declaration?
15:28
Hi Guys
!!hi
Hello
I am trying to update a specific object value in an array of objects, but what I am doing looks like it is turning the array into an object, because then .filter() isn't working later saying its not a function
var newReceptionData = { ...this.receptionData };
const newMeetings = newReceptionData.meetings.map(m =>
  m.id === message.meetingId
    ? { ...m, isDeleted: true }
    : m
);
newReceptionData.meetings = { ...newMeetings };
this.receptionData = newReceptionData;
i mean
newReceptionData.meetings = { ...newMeetings };
you're literally spreading the array into an object
there's a lot i don't like about this code
I am using ng-run.com to test demo apps in angular.. how to add bootstrap depemndency?
15:34
dunno, i don't do angular
const newMeetings = newReceptionData.meetings.map(m =>
  m.id === message.meetingId
    ? { ...m, isDeleted: true }
    : m
);
@KevinB the spread was there from the existing code which actually removed the item from the array, what we want now is to just change a flag when its "deleted"
this for example, there's no reason to avoid an if statement and a return here, it just makes the code harder to read
{ ...m, isDeleted: true }
this bit, you're creating a new object every time, is that necessary?
@WhatsThePoint But spreading an array into an object will create an object. It always has.
you could just update the single key from false to true
@VLAZ then I dont know how the existing code worked :D
15:36
which would further lead to you don't really need .map either
.some would stop the loop when the meeting is found
var -> const
this is the existing code that removed the item
this.removeMeetingSubscription = meetingsService.meetingRemoved$.subscribe((message: MeetingMessageReceived) => {
  var meeting = this.receptionData.meetings ? this.receptionData.meetings.find(m => m.id === message.meetingId) : null;
  if (message.meetingId && meeting) {
    var newReceptionData = { ...this.receptionData };
    newReceptionData.meetings = newReceptionData.meetings.filter(t => t.id != message.meetingId);
    this.receptionData = newReceptionData;
  }
});
receptionData !== receptionData.meetings
do you need to create a new receptionData?
it's been a while since i've used react/angular, but shouldn't you only update the stuff that changed, so that only the things that need to be rerendered get rerendered?
if you replace the whole object, then everything gets rerendered even if only a single meeting changed
I want it to be rerendered so it can move to the "deleted" section
Right, but that can be done without rerending all the other meetings i think?
it just moves one div from a to b
I dont know, I am still a total noob tbh
but it would probably be best to keep it in line with the existing code
15:41
it's the kind of optimization that won't really matter early on, but once it does matter it's a real problem, and that can happen fast
k, in following the old code, then, you want to replace this.receptionData with a new object that has an updated meetings array
something more like this:
this.removeMeetingSubscription = meetingsService.meetingRemoved$.subscribe((message: MeetingMessageReceived) => {
  var meeting = this.receptionData.meetings ? this.receptionData.meetings.find(m => m.id === message.meetingId) : null;
  if (message.meetingId && meeting) {
    meeting.isDeleted = true;
    var newReceptionData = { ...this.receptionData };
    newReceptionData.meetings = [...newReceptionData.meetings];
    this.receptionData = newReceptionData;
  }
});
because meeting is an object, you can just modify it directly
and then i kept in place all the object/array replacement to keep it doing what the old did
added two lines, removed one line
great that worked, thank you
16:25
|| say ||
|| say ||
17:00
!!||
|| say ||
 
2 hours later…
18:54
posted on April 02, 2024 by Daniel Gagnon

The Stable channel is being updated to OS version: 15786.41.0 Browser version: 123.0.6312.94 for most ChromeOS devices. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue or send feedback on ChromeInterested in switching channels? 

 
3 hours later…
21:54
posted on April 02, 2024 by Srinivas Sista

The Stable channel has been updated to 123.0.6312.105/.106/.107 for Windows and Mac and 123.0.6312.105 to Linux which will roll out over the coming days/weeks. A full list of changes in this build is available in the Log. Security Fixes and Rewards Note: Access to bug details and links may be kept restricted until a majority of users are updated with a fix. We will also retain restrict

posted on April 02, 2024 by Prudhvikumar Bommana

The Extended Stable channel has been updated to 122.0.6261.156 for Windows and Mac 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 lear

posted on April 02, 2024 by Krishna Govind

  Hello, Everyone! We've just released Chrome 123 (123.0.6312.99) for Android: it'll become available on Google Play over the next few days. 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. Android releases contain the same security fixes as


« first day (4917 days earlier)      last day (255 days later) »