Delba's banner
Delba's profile picture

Delba

@delba_oliveira74,440 subscribers

Claude Code • @ClaudeDevs @AnthropicAI | Prev. @Vercel

Shorts

Hi. I'm back. Next.js 16: 𝚌𝚊𝚌𝚑𝚎𝙻𝚒𝚏𝚎 Configure how long: • prefetched data can be reused on the client without refetching • prerendered data can be reused on the server without rerendering

Hi. I'm back. Next.js 16: 𝚌𝚊𝚌𝚑𝚎𝙻𝚒𝚏𝚎 Configure how long: • prefetched data can be reused on the client without refetching • prerendered data can be reused on the server without rerendering

94,469 просмотров

👩‍🔬 <AnimatedFilesystem />

👩‍🔬 <AnimatedFilesystem />

41,704 просмотров

Vercel pricing update: CPU billing is now based on active usage, not function duration. This means you no longer pay for time spent waiting on external services such as databases, APIs, or LLMs.

Vercel pricing update: CPU billing is now based on active usage, not function duration. This means you no longer pay for time spent waiting on external services such as databases, APIs, or LLMs.

107,257 просмотров

TIL multiple CSS transform functions of the same type are additive. I used it to add a turbulence effect that doesn't overwrite existing or in-progress transforms.

TIL multiple CSS transform functions of the same type are additive. I used it to add a turbulence effect that doesn't overwrite existing or in-progress transforms.

67,772 просмотров

React 19: useFormState → useActionState

React 19: useFormState → useActionState

120,772 просмотров

Next.js 15.2 (canary preview): Node.js middleware The quest to fully support Node.js in middleware continues. You can now configure `middleware.js` to use the Node.js runtime. This means you can use any node module or npm package in your middleware.

Next.js 15.2 (canary preview): Node.js middleware The quest to fully support Node.js in middleware continues. You can now configure `middleware.js` to use the Node.js runtime. This means you can use any node module or npm package in your middleware.

66,705 просмотров

Next.js 15.1: Easier error debugging ✓ Hide¹ stack frames for dependency code ✓ Surface source of the error in your code Video: Terminal output² of a Zod parsing error

Next.js 15.1: Easier error debugging ✓ Hide¹ stack frames for dependency code ✓ Surface source of the error in your code Video: Terminal output² of a Zod parsing error

49,593 просмотров

Videos

delba_oliveira's profile picture

Life update: I've joined the Claude Code team at Anthropic.

Delba

337,610 просмотров • 1 месяц назад

delba_oliveira's profile picture

React visually explained: 'use client'

Delba

746,659 просмотров • 1 год назад

delba_oliveira's profile picture

I created a course to learn Claude Code in Claude Code.

Delba

110,373 просмотров • 4 месяцев назад

delba_oliveira's profile picture

Next.js patterns: Public pages with some personalization.

Delba

65,821 просмотров • 4 месяцев назад

delba_oliveira's profile picture

Preview: The Future of Next.js... in 100 seconds.

Delba

129,775 просмотров • 1 год назад

delba_oliveira's profile picture

Next.js 15 next.config.js → next.config.ts

Delba

86,246 просмотров • 1 год назад

delba_oliveira's profile picture

Static vs. Dynamic rendering in Next.js

Delba

105,379 просмотров • 2 лет назад

delba_oliveira's profile picture

👩‍🔬 AI teleprompter ft.

Delba

15,005 просмотров • 3 месяцев назад

delba_oliveira's profile picture

React tip: "use client" misconceptions (2/5) 🚫 "You cannot nest Server Components inside Client Components because "use client" turns everything into Client Components." ✅ We can pass the rendered result of Server Components to Client Components as props. Simple example: (Server Component) (Client Component) (Server Component) is designed for the client. It needs to instantly open and close when clicked. is designed for the server. It uses packages that don't work in the browser and needs to fetch data close to where it's stored without exposing credentials. So, how can we nest a component that uses server APIs inside a component that uses client APIs... without using `import`? React props to the rescue! --- (0:00) 1-4: Reminder: Importing code forms a module dependency graph. Adding dependencies to a server or client bundle. (0:23) 5-6: Reminder: Using components eventually forms a rendered component tree. (0:37) 9: Oh no! We get an error when trying to `import` a client API (useState) into a server module. (0:44) 10: We know the trick by now: Add "use client" to mark `2.js` as a client entry point. This moves the module to the client bundle and allows us to use client APIs like `useState.` (0:51) 11: But we get a new error! "use client" moved all imported dependencies into the client bundle, including our ORM package, which doesn't work in the browser. (0:59) 13: Let's refactor without changing our rendered component hierarchy. First, we move the `Cart` import to the parent file that imports `Modal`. This moves `Cart` outside the "use client" boundary and consequently the client bundle. (1:11) 15: Then, we pass down the rendered result of `Cart` as a prop to `Modal`. This allows `Cart` to be entirely rendered on the server as a Server Component before being passed down. `Modal` has no knowledge of what the `cart` prop is. Its only responsibility is placing whatever it receives into the `{cart}` slot. (1:15) 16: Finally, it's common to use the special `children` prop for a component's primary content. The key insight is that we were able to use props to retain our desired component hierarchy even though we changed our module dependency graph.

Delba

43,989 просмотров • 2 лет назад

Больше нет контента для загрузки