[ivette] Fixing react unmounted component bug
The Valuecomponent had lots of weird bugs, triggering the warning <Can't perform a React state update on an unmounted component>. This was caused by an ugly, full of unsafe effect, way to handle the Model used by a lot of components used by the ValueComponent Now, the Model is created only once by the ValueComponent itself, and given as a property to every component that needs it. As a consequence, the useModel() function is now useless.
Showing
- ivette/src/frama-c/plugins/eva/index.tsx 10 additions, 3 deletionsivette/src/frama-c/plugins/eva/index.tsx
- ivette/src/frama-c/plugins/eva/model.ts 2 additions, 22 deletionsivette/src/frama-c/plugins/eva/model.ts
- ivette/src/frama-c/plugins/eva/probeinfos.tsx 6 additions, 6 deletionsivette/src/frama-c/plugins/eva/probeinfos.tsx
- ivette/src/frama-c/plugins/eva/valueinfos.tsx 5 additions, 5 deletionsivette/src/frama-c/plugins/eva/valueinfos.tsx
- ivette/src/frama-c/plugins/eva/valuetable.tsx 8 additions, 7 deletionsivette/src/frama-c/plugins/eva/valuetable.tsx
Loading
Please register or sign in to comment