3 Replies
yea, btw, don't trust anybody when it comes to hook dependencies, they are the most important thing in React
that function shouldn't be there, and honestly having availableFiles there is dangerous as well
everyone gets this wrong and it causes big issues- even the mainstream linting rules are totally wrong. As few dependencies as possible is best- and serializing dependencies into primitives (like strings) instead of references is usually good as well
ohmygawd thats why im not comfortable w react ;/
everyone gets it wrong
b/c meta runs react and has different internal rules than most open-source projects, the rules work for them but not others
and AI uses meta rules