Why shouldn't we use defineasynccomponent with route component #2134
-
|
The documentation says:
But don't explain why. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I have the same question. I suspect this is because of component navigation guards
But I'm just guessing, maybe there's some other reason. It'd be nice to know for sure, because using just dynamic imports has some serious downsides, namely that it introduces noticable delay when you click a link. We would like to use async component to avoid that (or some equivalent of it) and I want to know what are the pitfalls we should be aware of. |
Beta Was this translation helpful? Give feedback.
I have the same question. I suspect this is because of component navigation guards
But I'm just guessing, maybe there's some other reason. It'd be nice to know for sure, because using just dynamic imports has some serious downsides, namely that it introduces noticable delay when you click a link. We would like to use async component to avoid that (or some equivalent of it) and I want to know what are the pitfalls we should be aware of.