Openbravo Issue Tracking System - POS2
View Issue Details
0048538POS2Corepublic2022-02-06 10:382022-02-19 11:48
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
No
0048538: Provide a way to re-render a component when a given property of the localstorage is updated
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.
-
Create a new react hook that, given a searchKey, will rerender a component if the value whose key is the given search is updated
No tags attached.
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 
Issue History
2022-02-06 10:38AugustoMauchNew Issue
2022-02-06 10:38AugustoMauchAssigned To => AugustoMauch
2022-02-06 10:38AugustoMauchTriggers an Emergency Pack => No
2022-02-06 11:32AugustoMauchStatusnew => scheduled
2022-02-06 11:32AugustoMauchRelationship addeddepends on 0048539
2022-02-06 11:50hgbotNote Added: 0134800
2022-02-19 11:48hgbotResolutionopen => fixed
2022-02-19 11:48hgbotStatusscheduled => closed
2022-02-19 11:48hgbotNote Added: 0135141
2022-02-19 11:48hgbotNote Added: 0135142
2022-02-24 16:07caristuRelationship addedrelated to 0048671

Notes
(0134800)
hgbot   
2022-02-06 11:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/698 [^]
(0135141)
hgbot   
2022-02-19 11:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a3d56fee571ffdf975dcaa0ec0216defd729221f
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 19-02-2022 11:47:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a3d56fee571ffdf975dcaa0ec0216defd729221f [^]

Fixes ISSUE-48538: Merge branch 'fr/48538-useLocalStorage'

---
A web-jspack/org.openbravo.core2/src/core/__test__/UseLocalStorage.test.jsx
A web-jspack/org.openbravo.core2/src/core/useLocalStorage.js
---
(0135142)
hgbot   
2022-02-19 11:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/698 [^]