Describe the bug
The DrawerPage component is rendering multiple times, even when state is not changing. This in turns forces child component DrawerHeader and CategoryTree component to render multiple times, which is not good for performance
Expected behavior
The DrawerPage should have rendered only 3 times, i.e.,
When component is mounted for the first time
When status changes from DEFAULT to LOADING
Finally when status changes from LOADING to SUCCESS/FAILURE
Current Behavior
The DrawerPage is rendering multiple times, without any state change. check the log message ALERT: Inside Navigation Drawer render function
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Open the app in debugging mode
See the log message in console in web browser
Wait or open any other page, the DrawerPage wiill render multiple times.
Screenshots
Smartphone (please complete the following information):
Describe the bug The
DrawerPage
component is rendering multiple times, even when state is not changing. This in turns forces child componentDrawerHeader
andCategoryTree
component to render multiple times, which is not good for performanceExpected behavior The
DrawerPage
should have rendered only 3 times, i.e.,DEFAULT
toLOADING
LOADING
toSUCCESS/FAILURE
Current Behavior The
DrawerPage
is rendering multiple times, without any state change. check the log messageALERT: Inside Navigation Drawer render function
Steps to Reproduce Please provide detailed steps for reproducing the issue.
DrawerPage
wiill render multiple times.Screenshots
Smartphone (please complete the following information):
Additional context Help needed!