Replies: 6 comments
-
Can you point me at that guidance? |
Beta Was this translation helpful? Give feedback.
-
Sure! Official docs mention it here https://flutter.dev/docs/perf/deferred-components but not dedicated to flutter web. Would be awesome to have GODeferredRoute that take care of loading the deferred component to improve loading time. |
Beta Was this translation helpful? Give feedback.
-
I'm open to a PR for sure. |
Beta Was this translation helpful? Give feedback.
-
Although in thinking about it more, if your pages are deferred types, then it should just work, right? |
Beta Was this translation helpful? Give feedback.
-
Deferred types mean that before you can use it you need to load it, so it's a async process. So it need to be taking care in some way or it doesn't work, to be honest I didn't make any testing about this yet. And I just start building for web so I was searching for some examples ^^ |
Beta Was this translation helpful? Give feedback.
-
To load the page types asynchronously, I'd use a pattern like the one described here: https://pub.dev/packages/go_router#async-data |
Beta Was this translation helpful? Give feedback.
-
I read that best practice for flutter web is to use deferred import to optimize loading time.
I was wondering if there is any exemple of how it work with go_router, I was expecting a
GoDeferredRoute
Beta Was this translation helpful? Give feedback.
All reactions