What does this do? Can't find `defaultState` anywhere else