Skip to content

Typescript does not recognize undefined return value of non-lazy imported pinia colada loader. #633

Closed Answered by posva
JarvisH asked this question in Questions and Help
Discussion options

You must be logged in to vote

It’s not about the route component mounting first. It’s about the navigation happening and finishing before any component using the data loader (including the route component) mounts

it works too, but you should mark the loader as lazy

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JarvisH
Comment options

@posva
Comment options

Answer selected by JarvisH
@JarvisH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #632 on April 29, 2025 18:33.