Skip to content

Commit

Permalink
Remove caching on API
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Apr 30, 2024
1 parent 39b7544 commit 0e75fde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/fetchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const fetchApi = async <T>(
url: string,
options: Options = {},
): Promise<T> => {
options = { cache: "no-store", ...options };

const response = await fetch(url, options);

if (!response.ok) {
Expand Down

0 comments on commit 0e75fde

Please sign in to comment.