-
Is there a native way on SolidStart to cache Maybe I was deploying incorrectly, but I noticed that my subsequent requests to routes that have already been loaded, would still block rendering pending The solidjs Hacker News Demo appears to have user comments cached despite making a network request on every visit. I realize this demo is using solidjs (not SolidStart) but that behavior is what I'm looking for, almost instant loading on subsequent visits. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
https://github.com/solidjs-community/solid-primitives/tree/main/packages/resource#makecache might be a simple solution for you. |
Beta Was this translation helpful? Give feedback.
-
For some reason, the 2 year old version of the hacker news demo is much faster when re-visiting comment pages, it feels like it is cached but I do see a network request still being sent. When I throttle my connection to slow 3G, the 2 year old version still loads instantly while the newer SolidStart crawls. I cannot figure out why |
Beta Was this translation helpful? Give feedback.
https://github.com/solidjs-community/solid-primitives/tree/main/packages/resource#makecache might be a simple solution for you.