mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Temporarily disable this now
This commit is contained in:
parent
a6196f923f
commit
353c911232
1 changed files with 10 additions and 9 deletions
|
@ -81,15 +81,16 @@ function StatusPage({ id }) {
|
||||||
let heroStatus = snapStates.statuses.get(id);
|
let heroStatus = snapStates.statuses.get(id);
|
||||||
if (hasStatus) {
|
if (hasStatus) {
|
||||||
console.log('Hero status is cached');
|
console.log('Hero status is cached');
|
||||||
heroTimer = setTimeout(async () => {
|
// NOTE: This might conflict if the user interacts with the status before the fetch is done, e.g. favouriting it
|
||||||
try {
|
// heroTimer = setTimeout(async () => {
|
||||||
heroStatus = await heroFetch();
|
// try {
|
||||||
states.statuses.set(id, heroStatus);
|
// heroStatus = await heroFetch();
|
||||||
} catch (e) {
|
// states.statuses.set(id, heroStatus);
|
||||||
// Silent fail if status is cached
|
// } catch (e) {
|
||||||
console.error(e);
|
// // Silent fail if status is cached
|
||||||
}
|
// console.error(e);
|
||||||
}, 1000);
|
// }
|
||||||
|
// }, 1000);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
heroStatus = await heroFetch();
|
heroStatus = await heroFetch();
|
||||||
|
|
Loading…
Reference in a new issue