creativetimofficial / argon-dashboard-react

React version of Argon Dashboard
MIT License
442 stars 743 forks source link

[Feature Request] Not able to use react lazy() for code splitting #77

Open sameert-iprogrammer opened 1 year ago

sameert-iprogrammer commented 1 year ago

What is your enhancement?

We tried using react lazy() for code splitting but after changes, unable to generate build. System hangs if build creation is in progress. Currently after build we have 4 chunk js files which are having 16mb size hence app takes too much time to load so wanted to split code and improve performance. Please let us know if argon react supports react lazy. https://react.dev/reference/react/lazy#suspense-for-code-splitting

Version: argon-dashboard-pro-react 1.2.0

Current structure: routes.js file having array of routes and in Admin.js, we have used routes array