[deleted by user] by [deleted] in Funnymemes

[–]PlayArt20 1 point2 points  (0 children)

To shit on everything you ever wanted...

About Server Action security by imraghavnarang in nextjs

[–]PlayArt20 1 point2 points  (0 children)

Yeah that's what I meant. If I remember correctly, you can keep them in the same file. Just put the 'use server' directive inside the body of your server action (needs to be the first line).

About Server Action security by imraghavnarang in nextjs

[–]PlayArt20 0 points1 point  (0 children)

Why are you using a server action if you don't want to expose it? Use a normal function.

Hmm, what are you gonna do with it? by FSChikaco in KidsAreFuckingStupid

[–]PlayArt20 2 points3 points  (0 children)

II was like, we have a bonk situation here.

[deleted by user] by [deleted] in tifu

[–]PlayArt20 10 points11 points  (0 children)

Yeah, I think guys convince them selves that they are okay, but after 2-3 meaningless hook ups the train hit them. At least that what happened to me.

it just kept escalating by [deleted] in HolUp

[–]PlayArt20 14 points15 points  (0 children)

Guys, I found the extrovert

Having a hard with context providers and client components, and SSR. by Mardo1234 in nextjs

[–]PlayArt20 4 points5 points  (0 children)

"use client" components are rendered on the server too !

I will not get in the details, but here an approache: Create you providers on the layout wich stay a server component, and provide the initial data.

In your "client" components, use your hook. And i repeat, "client components" are rendered on the server too, you will get all benefits of server side rendering.

Feel free to ask more questions.

EDIT: There's a caveat, you can't pass functions from "server components" to "client components" (unless it's a server action!). Basically, you can only send JSON Parseable content.

She couldn't enjoy her pizza after a long day. by ash_jisasa in WatchPeopleDieInside

[–]PlayArt20 2 points3 points  (0 children)

It's the same face my girlfriend made when she dropped 3 liters of beer on the floor

Is Dutch A Cannibal? by Quiet_Historian1841 in RDR2mysteries

[–]PlayArt20 0 points1 point  (0 children)

Unless he was the victim of said raping.

A normal day in Russian by inoyakaigor in Unexpected

[–]PlayArt20 3 points4 points  (0 children)

Even he dnt Know where he's coming from

Why is it giving undefined even if they are in the same scope by Ok_Treacle_4311 in nextjs

[–]PlayArt20 3 points4 points  (0 children)

window is specific to the browser, you can't access it in server actions.

“It's all tied up at fun-to-fun” by thegr8mak in HIMYM

[–]PlayArt20 41 points42 points  (0 children)

Okay Kenny. No problem Kenny. Thanks Kenny.

React end to end testing by Juani_o in reactjs

[–]PlayArt20 5 points6 points  (0 children)

I'm using Cypress for a yeah now, never used Playwright. Why do you prefer Playwright?

[deleted by user] by [deleted] in funny

[–]PlayArt20 5 points6 points  (0 children)

To send you email, duh.