ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Myth: RSC’s can’t pass functions as props to client components, only server actions. Folks doesn’t seem to know you can put your event handlers and what not in a file with 'use client' at the top github.com/sanity-io/te... and pass it just fine github.com/sanity-io/te...

May 8, 2025, 1:36 AM

Record data

{
  "uri": "at://did:plc:xodvptu7vt2jlmi2ij4bhl55/app.bsky.feed.post/3lomrk6tqa22i",
  "cid": "bafyreibzlrti5lldpwphkxjbphpq6uxqzrsuvgyuagt5di3tjqptj6oqja",
  "value": {
    "text": "Myth: RSC’s can’t pass functions as props to client components, only server actions.\nFolks doesn’t seem to know you can put your event handlers and what not in a file with 'use client' at the top github.com/sanity-io/te... and pass it just fine github.com/sanity-io/te...",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://github.com/sanity-io/template-nextjs-personal-website/blob/main/app/(personal)/client-functions.ts#L6C17-L6C28",
        "title": "",
        "description": ""
      }
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreidakcypj5ojt5ij3cgyxpnufozyfgirld5orpbwl3kskzntsm4qty",
        "uri": "at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/app.bsky.feed.post/3lomonygni222"
      },
      "parent": {
        "cid": "bafyreidakcypj5ojt5ij3cgyxpnufozyfgirld5orpbwl3kskzntsm4qty",
        "uri": "at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/app.bsky.feed.post/3lomonygni222"
      }
    },
    "facets": [
      {
        "index": {
          "byteEnd": 228,
          "byteStart": 202
        },
        "features": [
          {
            "uri": "https://github.com/sanity-io/template-nextjs-personal-website/blob/main/app/(personal)/client-functions.ts#L6C17-L6C28",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 277,
          "byteStart": 251
        },
        "features": [
          {
            "uri": "https://github.com/sanity-io/template-nextjs-personal-website/blob/main/app/(personal)/layout.tsx#L67C28-L67C39",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2025-05-08T01:36:18.162Z"
  }
}