disable store caching

This commit is contained in:
SethBurkart123
2024-05-07 12:11:55 +10:00
parent 2408fb1028
commit 0c20edd55b
+1 -1
View File
@@ -30,7 +30,7 @@ const Store = () => {
const [coverThemes, setCoverThemes] = useState<Theme[]>([]);
useEffect(() => {
fetch('https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Themes/main/store/themes.json', { cache: 'no-store' })
fetch(`https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Themes/main/store/themes.json?nocache=${(new Date()).getTime()}`, { cache: 'no-store' })
.then(response => response.json())
.then((data: ThemesResponse) => {
setGridThemes(data.themes);