Function
createClientLoaderCache
(
props?: CacheClientLoaderArgs,
)
Source from the content-addressed store, hash-verified
| 163 | serverLoader: () => unknown; |
| 164 | } |
| 165 | export const createClientLoaderCache = <U extends ClientLoaderFunctionArgs>( |
| 166 | props?: CacheClientLoaderArgs, |
| 167 | ) => { |
| 168 | const clientLoader = (args: U) => cacheClientLoader<U>(args, props); |
| 169 | clientLoader.hydrate = true; |
| 170 | return clientLoader; |
| 171 | }; |
| 172 | |
| 173 | interface CachedLoaderDataProps { |
| 174 | adapter?: CacheAdapter; |
Tested by
no test coverage detected