useSafeSetState

About

set state but ignores if component has already unmounted

Examples

import {useSafeSetState} from "rooks"
export default function App() {
useSafeSetState();
return null
}

Join the community!

Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!

Powered by vercel