Skip to content

Commit

Permalink
Cache Odie storage ID for a very short time
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed May 24, 2024
1 parent 0b32788 commit 5412ca6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/odie-client/src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const useGetOdieStorage = ( key: OdieStorageKey ) => {
path: `/help-center/odie/history/last-chat-id`,
} as APIFetchOptions ).then( ( res ) => res[ storageKey ] );
},
// Give this further thought.
staleTime: 500, // 0.5 minute,
} );
return data;
};
Expand Down

0 comments on commit 5412ca6

Please sign in to comment.