0

I'm developing an application, and one screen in the app has many modals (let say 7-8 modals) which is used to show up information or enter data. The issue is, when I navigate to this screen, it's always take a long time (2-3 seconds) to render the screen. The screen was smooth and render fast before I put those modals on it. I guess it's because the screen has to render all modals, even though they're not yet displaying. Is it true? How can I solve this issue.

  • 1
    Your app has performance issues because you use the modals everywhere. I think you should put your modals in App.js and make them global maybe with redux. – ridvanaltun Oct 14 '21 at 21:54
  • @ridvanaltun wow, this is the first time I see a suggestion like your. Maybe it works. But is this a best practice? – xuantubka Oct 15 '21 at 04:07

0 Answers0