Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jul 21, 2024
1 parent b240681 commit 738f51e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vanilla/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,7 @@ export const createStore = (): Store => {
if (
atomState.m &&
!atomState.m.l.size &&
!Array.from(atomState.m.t).some(
(a) => getAtomState(a).m?.d.has(atom) ?? false,
)
!Array.from(atomState.m.t).some((a) => getAtomState(a).m?.d.has(atom))
) {
// unmount self
const onUnmount = atomState.m.u
Expand Down

0 comments on commit 738f51e

Please sign in to comment.