Feature #19554

FE - React - Lazy load on tab

Added by chok yee fan 9 months ago. Updated 9 months ago.

Status:FeedbackStart date:23 January 2024
Priority:NormalDue 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

Screenshot 2024-01-29 at 11.27.55 AM.png (303 KB) chok yee fan, 29 January 2024 11:27 AM

History

#1 Updated by Amirul Umar Pandai 9 months ago

  • Status changed from New to Resolved
  • Assignee changed from Amirul Umar Pandai to chok yee fan

#2 Updated by chok yee fan 9 months ago

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

Also available in: Atom PDF