Closed sunil-kumar-meena closed 1 year ago
@PrathibaJee
Without Strict Mode when we create/mount any component this is what happens
- React mounts the component.
- Layout effects are created.
- Effects are created.
With Strict Mode when we create/mount any component this is what happens
- React mounts the component.
- Layout effects are created.
- Effects are created.
- React simulates effects being destroyed on a mounted component.
- Layout effects are destroyed.
- Effects are destroyed.
- React simulates effects being re-created on a mounted component.
- Layout effects are created
- Effect setup code runs
Components are creating twice with strict mode in react
@sunil-kumar-meena , many thanks for fixing the issue and explaining the solution in detail.
Fix https://github.com/openBackhaul/RequestSequenceRepresentation/issues/33