Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaskasky committed Dec 12, 2024
1 parent b778517 commit b326dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanilla/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ type StoreArgs = readonly [
atom: WritableAtom<Value, Args, Result>,
setAtom: (...args: Args) => Result,
) => OnUnmount | void,
createPending: (pending?: Pending | undefined) => Pending,
createPending: (prevPending?: Pending | undefined) => Pending,
flushPending: (pending: Pending) => void,
]

Expand Down Expand Up @@ -790,7 +790,7 @@ export const createStore = (): Store => {
(_, atom, ...params) => atom.read(...params),
(_, atom, ...params) => atom.write(...params),
(_, atom, ...params) => atom.onMount?.(...params),
() => [new Map(), new Map(), new Set()],
(_) => [new Map(), new Map(), new Set()],
flushPending,
)
}
Expand Down

0 comments on commit b326dde

Please sign in to comment.