mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix timings
This commit is contained in:
parent
e30b717536
commit
a1ee76afd2
@ -31,7 +31,7 @@ export const AppProvider = (props: { children: JSXElement }) => {
|
|||||||
|
|
||||||
inactivityCounter = setTimeout(() => {
|
inactivityCounter = setTimeout(() => {
|
||||||
updateStore('isInactive', () => true)
|
updateStore('isInactive', () => true)
|
||||||
}, 30 * 60_000);
|
}, 3 * 60_000);
|
||||||
};
|
};
|
||||||
|
|
||||||
// EFFECTS --------------------------------------
|
// EFFECTS --------------------------------------
|
||||||
@ -44,10 +44,6 @@ export const AppProvider = (props: { children: JSXElement }) => {
|
|||||||
document.removeEventListener('mousemove', monitorActivity);
|
document.removeEventListener('mousemove', monitorActivity);
|
||||||
});
|
});
|
||||||
|
|
||||||
createEffect(() => {
|
|
||||||
console.log('INACTIVE: ', store.isInactive)
|
|
||||||
})
|
|
||||||
|
|
||||||
// STORES ---------------------------------------
|
// STORES ---------------------------------------
|
||||||
|
|
||||||
const [store, updateStore] = createStore<AppContextStore>({
|
const [store, updateStore] = createStore<AppContextStore>({
|
||||||
|
@ -73,7 +73,7 @@ const Home: Component = () => {
|
|||||||
setNewPostAuthors(() => []);
|
setNewPostAuthors(() => []);
|
||||||
}
|
}
|
||||||
|
|
||||||
const timeout = 10_000; //25_000 + Math.random() * 10_000;
|
const timeout = 25_000 + Math.random() * 10_000;
|
||||||
|
|
||||||
checkNewNotesTimer = setInterval(() => {
|
checkNewNotesTimer = setInterval(() => {
|
||||||
context?.actions.checkForNewNotes(hex);
|
context?.actions.checkForNewNotes(hex);
|
||||||
|
Loading…
Reference in New Issue
Block a user