Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048538
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[POS2] Coremajorhave not tried2022-02-06 10:382022-02-19 11:48
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048538: Provide a way to re-render a component when a given property of the localstorage is updated

DescriptionThere 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 SolutionCreate a new react hook that, given a searchKey, will rerender a component if the value whose key is the given search is updated
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0048539 closedAugustoMauch Retail Modules Add hooks to OB.UTIL.localStorage to be notified when a value is updated 
related to defect 0048671 scheduledmeriem_azaf POS2 Unify directory to keep core's React hooks 

-  Notes
(0134800)
hgbot (developer)
2022-02-06 11:50

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/698 [^]
(0135141)
hgbot (developer)
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 (developer)
2022-02-19 11:48

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/698 [^]

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker