Last week, they went to the All-Star Game together. In the third inning on Wednesday, Francisco Lindor and Pete Alonso broke out of slumps together. (At least for a day.)

Lindor was in a career-worst, 0-for-31 drought when he singled in a run to give the Mets a 2-1 lead. Two batters later, Alonso, in a 2-for-34 skid that dated to July 10, belted a 439-foot, three-run homer. They both finished 2-for-4 as the Mets (59-44) went on to beat the Los Angeles Angels 6-3 for their fourth consecutive win and moved into first place in the National League East when the Phillies lost later in the night.

Lindor offered a concise analysis after the game: “It is what it is. When you’re good, you’re good. When you suck, you suck. It is what it is.”

For a more thorough analysis, there was manager Carlos Mendoza.

“From Lindor, short to the ball, not trying to do too much,” he said. “A couple of line drives. Under control. Some of the takes, weren’t as aggressive, it was just more like, let me use my hands here, let me get the barrel to the ball, and not trying to do too much.

“And then for Pete, just being on time. He swung through a fastball there and then he made an adjustment. And you see it, when he’s on time it allows him to make some really good swing decisions. But not only that, the barrel, with the way he can get that contact point, so off the bat, what a shot there.

“We gonna need those guys. We know that they are going through it but they’re too good, man. They’re too good of a hitter, they’re too good of a player and I’m glad that they were able to come through for us today.”

Alonso, who is four homers shy of Darryl Strawberrys franchise home run record (252), told SNY in an interview on the field after the game that Mendoza “just pulled me in the office. He just said get your darn foot down and that was pretty much it. Yeah, I mean I just felt really comfortable, yeah, you can’t hit if your foot’s not down.”

The 41,591 on hand at Citi Field gave Lindor an extra ovation when he got his first hit since July 12.

“It was special, but not just when I got the hit,” he said. “They’ve been supporting me all along. I feel the love. It’s definitely special, for sure. It makes you want to go continue to go even harder, day in and day out.

“This city, this market makes you bring the best of yourself every single day and you can’t take that for granted. This homestand the crowd was unbelievable so shout out to them. Sorry I didn’t put on a good show for them earlier but stay the course and hopefully good things happen.”

The Mets, who rank fifth in MLB home attendance, drew more than 250,000 fans during the six-game homestand.

“It’s awesome,” Alonso said. “The fans have really shown out this year and I think that’s really helped us out. It’s really helped us out big time. I think our home record (37-16) shows for that and we’re really appreciative of that. I feel like the more engaged, the more rowdy, and the more people show up, the better we play.

“So it really feels like a true home-field advantage and it’s awesome. Having the crowd into it, engaged, like the way they have been, it’s like having a 10th player out there so it’s awesome.”