Handle hot module unloading in layout

This commit is contained in:
Jon Staab
2025-10-21 08:27:30 -07:00
parent 7476767aa7
commit ecbb3086d8
8 changed files with 262 additions and 285 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ export const makeFeed = ({
onScroll: async () => {
const $buffer = get(buffer)
events.update($events => [...$events, ...$buffer.splice(0, 100)])
events.update($events => [...$events, ...$buffer.splice(0, 30)])
if ($buffer.length < 100) {
ctrl.load(100)
+1 -1
View File
@@ -349,7 +349,7 @@ export const {
// Relays sending events with empty signatures that the user has to choose to trust
export const relaysPendingTrust = writable<string[]>([])
export const relaysPendingTrust = withGetter(writable<string[]>([]))
// Relays that mostly send restricted responses to requests and events