SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
oneiro

Suspense not updating when navigating to Route directly

Hey folks,

I am currently having a weird issue I can't quite solve:

We have a route which receives data via routeData + createServerData$. The routes JSX is wrapped with <Suspense />.

Now when I navigate to this route from another route, our data will be set correctly and <Suspense /> will eventually resolve.

However when I simply type the url in to my browser and navigate directly to the route, suspense will never resolve.

data() keeps being undefined. I logged inside createServerData and the data seems to be correctly accumulated on the server, I just does not seem to be served to the client.

Anything obvious I am missing here?

Thanks in advance

PS: I will try to create a minimal reproducable example asap - I just wanted to get this question ouf beforehand in case there's something obvious I am doing wrong ๐Ÿ™‚
Was this page helpful?