-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
problem: we lose our shortlist on navigation changes
- Loading branch information
1 parent
0fae9f2
commit bcde51f
Showing
4 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import type { NostrEvent } from "nostr-tools"; | ||
import { writable, type Readable, type Writable } from "svelte/store"; | ||
import { derived, writable, type Readable, type Writable } from "svelte/store"; | ||
|
||
export let shortListLength: Readable<number>; | ||
|
||
let _stableShortlist: NostrEvent[] = []; | ||
export let stableShortList: Writable<NostrEvent[]> = writable(_stableShortlist); | ||
export let stableShortList: Writable<NostrEvent[]> = writable(_stableShortlist); | ||
|
||
export let threadParentIDChain = writable(['root']); | ||
|
||
export let threadParentID = derived(threadParentIDChain, ($tpi) => { | ||
return $tpi[$tpi.length - 1]; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters