useFreshCallback

About

Avoid stale closures and keep your callback fresh

Examples

import {useFreshCallback} from "rooks"
export default function App() {
useFreshCallback();
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