Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching data docs (rfc) #324

Merged
merged 4 commits into from
Dec 13, 2022
Merged

Fetching data docs (rfc) #324

merged 4 commits into from
Dec 13, 2022

Conversation

frandiox
Copy link
Contributor

This comes from #58 and #131 . We never merged those PRs and the code has changed quite a lot since then.

I've removed the mentions to the filter utility since we haven't implemented it.

@frandiox frandiox requested a review from a team December 12, 2022 11:27

return defer({
product: await productQuery,
reviews: reviewsQuery,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this example also include how to consume the deferred data from useLoaderData()?

id
title
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a better example of something you wouldn't want to cache would be cart? Realistically I would think product id and title would be cached for long.

@frandiox frandiox merged commit 2e5dce6 into v0.x-2022-10 Dec 13, 2022
@frandiox frandiox deleted the fd-fetching-data-docs branch December 13, 2022 03:41
This was referenced Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants