How to fetch on interval and only update state when fetched data is new with hooks?

Go to top