ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SolidJSS
SolidJSโ€ข2y agoโ€ข
22 replies
anthy

How to use preloaded data

The solid router docs do not give any example on how to use the data returned from the preload function - https://github.com/solidjs/solid-router?tab=readme-ov-file#preload-functions

I don't want to use any wrappers such as cache. In the preload function I'm just doing a fetch call. I access the data as a component prop. It comes as a promise. How do I display that data in the component?
GitHub
GitHub - solidjs/solid-router: A universal router for Solid inspire...
A universal router for Solid inspired by Ember and React Router - solidjs/solid-router
GitHub - solidjs/solid-router: A universal router for Solid inspire...
SolidJS banner
SolidJSJoin
Solid is a declarative reactive Javascript library for creating user interfaces.
12,283Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

When to use data.loading vs <suspense>
SolidJSSSolidJS / support
3y ago
How to use `cache.set`?
SolidJSSSolidJS / support
16mo ago