At the moment, onRest is called every time the component is rendered.
Here is a demo to compare this behavior with what react-motion does: https://codesandbox.io/s/3v99xomj2p
I think react-spring should follow the behavior of react-motion, where onRest only gets called after a transition ends.