Compare commits

...

2 Commits

Author SHA1 Message Date
Jon Staab eebd764a18 Speed up feed loading 2026-06-15 13:12:46 -07:00
userAdityaa 3945685554 fix: make account selector inert during email login (#304)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-06-15 18:26:41 +00:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@
onclick={() => selectAccount(option)} onclick={() => selectAccount(option)}
disabled={loading} disabled={loading}
class="card2 bg-alt flex w-full items-center p-3 text-left"> class="card2 bg-alt flex w-full items-center p-3 text-left">
<Profile pubkey={option.pubkey} /> <Profile inert pubkey={option.pubkey} />
</Button> </Button>
{/each} {/each}
</div> </div>
+4 -4
View File
@@ -18,7 +18,7 @@ import {
now, now,
on, on,
sortBy, sortBy,
WEEK, MONTH,
YEAR, YEAR,
} from "@welshman/lib" } from "@welshman/lib"
import { import {
@@ -122,7 +122,7 @@ export const makeFeed = ({
const controller = new AbortController() const controller = new AbortController()
const events = writable<TrustedEvent[]>([]) const events = writable<TrustedEvent[]>([])
let interval = int(WEEK) let interval = int(MONTH)
let buffer = sortEventsDesc(getEventsForUrl(url, filters)) let buffer = sortEventsDesc(getEventsForUrl(url, filters))
let backwardWindow = [at - interval, at] let backwardWindow = [at - interval, at]
let forwardWindow = [at, at + interval] let forwardWindow = [at, at + interval]
@@ -213,7 +213,7 @@ export const makeFeed = ({
if (events.length === 0) { if (events.length === 0) {
interval = Math.round(interval * 1.1) interval = Math.round(interval * 1.1)
} else { } else {
interval = int(WEEK) interval = int(MONTH)
} }
} }
@@ -280,7 +280,7 @@ export const makeCalendarFeed = ({
element: HTMLElement element: HTMLElement
onExhausted?: () => void onExhausted?: () => void
}) => { }) => {
const interval = int(5, WEEK) const interval = int(5, MONTH)
const controller = new AbortController() const controller = new AbortController()
let exhaustedScrollers = 0 let exhaustedScrollers = 0