Skip to content

Commit

Permalink
set enabled to true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnlanre committed Oct 13, 2023
1 parent 2a87783 commit 0daf931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/useAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function useAtom<
store,
select = (transform: Data) => transform as unknown as Select,
use = [] as unknown as Use,
enabled,
enabled = true,
} = options;
const { get, set, next, subscribe, emit } = store;

Expand Down

0 comments on commit 0daf931

Please sign in to comment.