code-forge-io / code-forge-io/remix-client-cache

Usage with useRouteLoaderData

Open
#15 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
247
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I have a multi `layout` application where I fetch the data in one of the layout.
The data fetched in this `layout` is used with `useRouteLoaderData` in child components.

Since the documentation recommends using the `useCachedLoaderData`, is there a way similar where I can get the data similarly in `useRouteLoaderData` - possibly with `useCachedRouteLoaderData` ?

Thank you for your hard work on this package (and all the videos on YT too!).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.