mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
disable store caching
This commit is contained in:
@@ -30,7 +30,7 @@ const Store = () => {
|
|||||||
const [coverThemes, setCoverThemes] = useState<Theme[]>([]);
|
const [coverThemes, setCoverThemes] = useState<Theme[]>([]);
|
||||||
|
|
||||||
useEffect(() => {
|
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(response => response.json())
|
||||||
.then((data: ThemesResponse) => {
|
.then((data: ThemesResponse) => {
|
||||||
setGridThemes(data.themes);
|
setGridThemes(data.themes);
|
||||||
|
|||||||
Reference in New Issue
Block a user