Skip to content

Using defineBasicLoader only for build time with Nuxt + Static generation #599

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

You must be logged in to vote

Hello! Thanks for the feedback, it's really useful.

The type you are using is specifically for when the data property cannot be undefined so it's not possible to pass true. The actual type of options is a union of the different possibilities (DefineDataLoaderOptions_LaxData | DefineDataLoaderOptions_DefinedData currently)

Replies: 2 comments 2 replies

Comment options

onmax
Mar 13, 2025
Author Sponsor

You must be logged in to vote
2 replies
@posva
Comment options

@onmax
Comment options

onmax Mar 13, 2025
Author Sponsor

Comment options

You must be logged in to vote
0 replies
Answer selected by onmax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants