Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blittle committed Mar 16, 2023
1 parent 00718cf commit 4d73d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .changeset/swift-glasses-remain.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Add an experimental `withCache_unstable` utility similar to `useQuery` from Hydr
Then use the utility within your loaders:

```ts
export async function loader({context: {storefront, withCache}}: LoaderArgs) {
const data = await withCache(
export async function loader({
context: {storefront, withCache_unstable},
}: LoaderArgs) {
const data = await withCache_unstable(
'test-with-cache',
async () => {
const result = await fetch('https://www.some.com/api');
Expand Down
1 change: 0 additions & 1 deletion templates/demo-store/remix.env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ declare module '@shopify/remix-oxygen' {
waitUntil: ExecutionContext['waitUntil'];
session: HydrogenSession;
storefront: Storefront;
withCache: WithCache;
env: Env;
}
}
Expand Down

0 comments on commit 4d73d51

Please sign in to comment.