Bug #19541
FE - React - WS call multiple time after leave the page
Status: | Closed | Start date: | 22 January 2024 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | chok yee fan | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - |
Description
issue
-----
Currently the page will call web service after leave the page.
expected
-----
Currently the page SHOULD NOT call web service after leave the page.
History
#1 Updated by chok yee fan 12 months ago
chok: cciam use effectOnce useRef to execute once only at search
#2 Updated by chok yee fan 12 months ago
- Assignee changed from chok yee fan to Amirul Umar Pandai
Please apply it into your department module since is different coding pattern from others.
#3 Updated by Amirul Umar Pandai 12 months ago
- Status changed from New to Resolved
- Assignee changed from Amirul Umar Pandai to chok yee fan
Committed together with project-wide changes (search DepartmentForm.tsx and DepartmentSearch.tsx for fix for this issue)
useEffectOnce + useLanguageChanged custom hook