React native – React useState on custom hook is ignoring provided initial state
I'm simply not understanding why is this happening or even how to explain it, I have this custom hook: const useFeatures = (existingFeatures: Ft[]) => { console.log('fts provided to state:', existingFeatures) const [features, setFeatures] = useState(existingFeatures) console.log('fts given by state:',…