Feature #19554
FE - React - Lazy load on tab
Status: | Feedback | Start date: | 23 January 2024 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Amirul Umar Pandai | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - |
Description
issue
-----
mountOnEnter is wait until the first "enter" transition to mount tabs (add them to the DOM).
is NOT lazy load javascript.
expected
-----
SHOULD lazy load javascript.
try use React.lazy to implement
https://blog.bitsrc.io/lazy-loading-react-components-with-react-lazy-and-suspense-f05c4cfde10c
otherwise using this way
https://stackoverflow.com/questions/55293506/react-tabs-lazy-load
Note: Apply to all modules AFTER discussion
History
#1 Updated by Amirul Umar Pandai 12 months ago
- Status changed from New to Resolved
- Assignee changed from Amirul Umar Pandai to chok yee fan
#2 Updated by chok yee fan 11 months ago
- File Screenshot 2024-01-29 at 11.27.55 AM.png added
- Status changed from Resolved to Feedback
- Assignee changed from chok yee fan to Amirul Umar Pandai
issue
-----
group all the dom without lazy load
expected
----
should group only lazy load dom
if have special reason for that, highlight in the daily meeting