I have a main app component with two children. II am setting the state of parent from a path wich is first component. Then passing the state to second child using props. Strangely, when accessing the second route, the parent component state is getting cleared. Is it normal?