history is actually an object, we don't need a nested ref to it