Ernesto
Ernesto
TTCTheo's Typesafe Cult
Created by Ernesto on 4/29/2024 in #questions
Efficient Handling of Dialogs in Next.js?
I'm building a platform with numerous dialogs for various tasks like viewing details and creating items. Currently, I'm using jotai to manage them programmatically. However, I also have 'global' modals accessed from different parts of the platform. To streamline this, I created a GlobalDialogProvider component where I import all dialogs. Yet, some involve data fetching and complexity, leading to significant big 'first Load JS' and 'First Load JS shared by all ' sizes. Any suggestions for optimization?"
4 replies