A simple hook to poll a server for updates every n milliseconds, and remove itself on unmount. usePollingUpdate will call pollingFunction every interval milliseconds, and clean up after itself.
A simple hook to poll a server for updates every n milliseconds, and remove itself on unmount. usePollingUpdate will call pollingFunction every interval milliseconds, and clean up after itself.