Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048538 | POS2 | Core | public | 2022-02-06 10:38 | 2022-02-19 11:48 |
|
Reporter | AugustoMauch | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048538: Provide a way to re-render a component when a given property of the localstorage is updated |
Description | There may be components whose content depends on a value provided by the localstorage (OB.UTIL.localStorage.getItem).
If the value for that item is updated on the local storage we would like the component to be rerendered, the same way it does when the state is updated if the component uses the useSelector hook. |
Steps To Reproduce | - |
Proposed Solution | Create a new react hook that, given a searchKey, will rerender a component if the value whose key is the given search is updated |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | feature request | 0048539 | | closed | AugustoMauch | Retail Modules | Add hooks to OB.UTIL.localStorage to be notified when a value is updated | related to | defect | 0048671 | | scheduled | meriem_azaf | POS2 | Unify directory to keep core's React hooks |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-02-06 10:38 | AugustoMauch | New Issue | |
2022-02-06 10:38 | AugustoMauch | Assigned To | => AugustoMauch |
2022-02-06 10:38 | AugustoMauch | Triggers an Emergency Pack | => No |
2022-02-06 11:32 | AugustoMauch | Status | new => scheduled |
2022-02-06 11:32 | AugustoMauch | Relationship added | depends on 0048539 |
2022-02-06 11:50 | hgbot | Note Added: 0134800 | |
2022-02-19 11:48 | hgbot | Resolution | open => fixed |
2022-02-19 11:48 | hgbot | Status | scheduled => closed |
2022-02-19 11:48 | hgbot | Note Added: 0135141 | |
2022-02-19 11:48 | hgbot | Note Added: 0135142 | |
2022-02-24 16:07 | caristu | Relationship added | related to 0048671 |