Openbravo Issue Tracking System - POS2 |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0050727 | POS2 | POS | public | 2022-11-03 23:41 | 2022-11-07 16:37 |
|
| Reporter | AugustoMauch | |
| Assigned To | Retail | |
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | 23Q1 | |
| Merge Request Status | merged |
| Review Assigned To | jarmendariz |
| OBNetwork customer | No |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0050727: Memory leak in Carousel.jsx - DOM event listeners are not being removed |
| Description | The Carousel.jsx component has a memory leak because it is registering DOM events on a useEffect hook but is never unregistering them.
The useEffect hook should return a function that will be invoked when unmounting the component and that will unregister the DOM events |
| Steps To Reproduce | See the code here [1], it is adding two event listeners but never removing them. It should removee them like it is done here [2]
[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/Carousel/Carousel.jsx#L66 [^]
[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/DrawerMenu/DrawerMenuGroup.jsx#L250 [^] |
| Proposed Solution | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | depends on | backport | 0050762 | 22Q4.1 | closed | Retail | Memory leak in Carousel.jsx - DOM event listeners are not being removed | | depends on | backport | 0050763 | 22Q3.3 | closed | Retail | Memory leak in Carousel.jsx - DOM event listeners are not being removed |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2022-11-03 23:41 | AugustoMauch | New Issue | |
| 2022-11-03 23:41 | AugustoMauch | Assigned To | => Retail |
| 2022-11-03 23:41 | AugustoMauch | OBNetwork customer | => No |
| 2022-11-03 23:41 | AugustoMauch | Triggers an Emergency Pack | => No |
| 2022-11-03 23:41 | AugustoMauch | Status | new => scheduled |
| 2022-11-03 23:44 | hgbot | Merge Request Status | => open |
| 2022-11-03 23:44 | hgbot | Note Added: 0142891 | |
| 2022-11-07 16:00 | guilleaer | Status | scheduled => acknowledged |
| 2022-11-07 16:00 | guilleaer | Status | acknowledged => scheduled |
| 2022-11-07 16:34 | hgbot | Resolution | open => fixed |
| 2022-11-07 16:34 | hgbot | Status | scheduled => resolved |
| 2022-11-07 16:34 | hgbot | Merge Request Status | open => merged |
| 2022-11-07 16:34 | hgbot | Note Added: 0143170 | |
| 2022-11-07 16:34 | hgbot | Fixed in Version | => 23Q1 |
| 2022-11-07 16:34 | hgbot | Note Added: 0143171 | |
| 2022-11-07 16:37 | jarmendariz | Review Assigned To | => jarmendariz |
| 2022-11-07 16:37 | jarmendariz | Status | resolved => closed |