A React Hook that returns a function whose memory address will never change.
Try to increase the counter to update the component to trigger re-render, you will see that the function's memory address will never change, so the toast will never show up.
See API for more details.
Click links below to view source on GitHub.
The function whose memory address will be stable.
A same shape function, but its memory address will never change.