Skip to content

Commit

Permalink
fix(npm-react): useAtom recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Jul 12, 2023
1 parent b447fa8 commit 65fb433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/npm-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const useAtom: {
let sub = (cb: Fn) => ctx.subscribe(theAtom, cb)
let get = () => ctx.get(theAtom)

return { theAtom, depsAtom, update, deps, sub, get, subscribe }
return { theAtom, depsAtom, update, deps: [], sub, get, subscribe }
}).current

return ctx.get(() => {
Expand Down

1 comment on commit 65fb433

@vercel
Copy link

@vercel vercel bot commented on 65fb433 Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.