When to use data.loading vs <suspense>
Somehow in createresource i cant use <suspense> unless i put 'data()?. Something'
2 Replies
To trigger Suspense, you need to call the data function provided by the resource
Take note that you can omit the
Show
here however you still need to check in the component you're passing the data to if the data is ready or not (data() !== undefined
) looks cleaner. ahh okay, thanks. i think i understand