SolidJSS
SolidJS16mo ago
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
A universal router for Solid inspired by Ember and React Router - solidjs/solid-router
Was this page helpful?