Adding identity function and calling it before compose is called, to make sure state is reset