Interface for the onCleanup function: use onCleanup to define the cleanup function for your useEffect hook.