Skip to content

Commit

Permalink
In createDerivedStore, instead create a new store which simply doesn'…
Browse files Browse the repository at this point in the history
…t expose `set` and `update`.
  • Loading branch information
dskloetd committed Feb 1, 2023
1 parent 607871e commit c21c05c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/derived/debug.derived.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ import {
type Writable,
} from "svelte/store";

// TODO(dskloetd): Rename to createReadableStore.
const createDerivedStore = <T>(store: Writable<T>): Readable<T> =>
derived(store, (store) => store);
{ subscribe: store.subscribe };

let addAccountStore: Readable<AddAccountStore>;
export const debugAddAccountStore = (store: Writable<AddAccountStore>) =>
Expand Down

0 comments on commit c21c05c

Please sign in to comment.