Fix timings

This commit is contained in:
Bojan Mojsilovic 2024-03-11 22:47:11 +01:00
parent e30b717536
commit a1ee76afd2
2 changed files with 2 additions and 6 deletions

View File

@ -31,7 +31,7 @@ export const AppProvider = (props: { children: JSXElement }) => {
inactivityCounter = setTimeout(() => {
updateStore('isInactive', () => true)
}, 30 * 60_000);
}, 3 * 60_000);
};
// EFFECTS --------------------------------------
@ -44,10 +44,6 @@ export const AppProvider = (props: { children: JSXElement }) => {
document.removeEventListener('mousemove', monitorActivity);
});
createEffect(() => {
console.log('INACTIVE: ', store.isInactive)
})
// STORES ---------------------------------------
const [store, updateStore] = createStore<AppContextStore>({

View File

@ -73,7 +73,7 @@ const Home: Component = () => {
setNewPostAuthors(() => []);
}
const timeout = 10_000; //25_000 + Math.random() * 10_000;
const timeout = 25_000 + Math.random() * 10_000;
checkNewNotesTimer = setInterval(() => {
context?.actions.checkForNewNotes(hex);