I'm trying to query a collection from the server-side createApp function, but it's returning undefined. I investigated it a bit and it looks like it's coming from being wrapped in SsrContext. I'm not understanding what feature this context is trying to provide, is there an issue querying a collection directly here? I had the code running fine in onPageLoad directly, but was trying to move it to createApp for consistency. Not seeing anything about this in the readme, any tips?
I'm trying to query a collection from the server-side
createApp
function, but it's returning undefined. I investigated it a bit and it looks like it's coming from being wrapped inSsrContext
. I'm not understanding what feature this context is trying to provide, is there an issue querying a collection directly here? I had the code running fine inonPageLoad
directly, but was trying to move it tocreateApp
for consistency. Not seeing anything about this in the readme, any tips?