Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

there's a big problem with React's useContext

180,616 görüntüleme • 1 yıl önce •via X (Twitter)

11 Yorum

Cryptic Genome ☣️ profil fotoğrafı
Cryptic Genome ☣️1 yıl önce

Wait I dont understand why would you suggest putting the context provider in the highest possible node in the tree? Just after saying that components re-render their children unnecessary after context value change?

Aiden Bai profil fotoğrafı
Aiden Bai1 yıl önce

if you pass it at a low part of a subtree that renders a lot, and the value changes a bunch, and many parts of the app depend on that data, it can cause issues

Callstack Engineers profil fotoğrafı
Callstack Engineers1 yıl önce

Grab your popcorn 🍿 Our React Native for TV guide is here, packed with the latest techniques and best practices. Don't miss out on this essential update to keep your apps running at peak performance 🚀 Download it now 🔗

vorillaz profil fotoğrafı
vorillaz1 yıl önce

`use-context-selector` is an amazing abstraction layer that solves this problem

Tiger Abrodi profil fotoğrafı
Tiger Abrodi1 yıl önce

Yeah. This is what I dislike most with React's useContext. Better alternatives: - MobX - Zustand - Jotai

Josh Manders profil fotoğrafı
Josh Manders1 yıl önce

Did you manually speed up the video? My setting says 1x but it sounds like 1.5-2x

ℂ𝕠𝕕𝕖𝕩, ℍ𝕖𝕣𝕖! profil fotoğrafı
ℂ𝕠𝕕𝕖𝕩, ℍ𝕖𝕣𝕖!1 yıl önce

I was hoping to see a mention of useMemo and React.memo

Jordy profil fotoğrafı
Jordy1 yıl önce

React should just provide better global state handling out of the box. Its such a common use case.

Bedros Pamboukian profil fotoğrafı
Bedros Pamboukian1 yıl önce

Hm, useContext is great for avoiding prop drilling in components, but this video seems centered around application-level state - for that, use something like Redux / Zustand Application state gets messy with Context, and having 12 different contexts on the top-level is not ideal

{Bhide}.Svelte profil fotoğrafı
{Bhide}.Svelte1 yıl önce

React === Problems

Rat the Dog profil fotoğrafı
Rat the Dog1 yıl önce

love these videos. learning a lot about react through these short bites. just a note, i had to slow down the speed to .75 to really grasp what you're saying.

Benzer Videolar

Cinna's Problem With Big Boobs.
2:00

Sensitive content

Cinna's Problem With Big Boobs.

Lyker

355,373 görüntüleme • 1 ay önce