3 ms·
y might be "changing" but being effectively the same function or the same array. There are legitimate cases when you want to just read the latest value of somet
by agos 1y ago
y might be "changing" but being effectively the same function or the same array. There are legitimate cases when you want to just read the latest value of something inside an effect without it being a dependency, and after years of gaslighting about it React seems to agree and useEffectEvent is coming.