mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
disable store caching
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user