Skip to content

Commit

Permalink
Update src/vanilla.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Jun 21, 2021
1 parent e239b08 commit 4aa50f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vanilla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ export default function create<

const destroy: Destroy = () => listeners.clear()
const api = { setState, getState, subscribe, destroy }
state = createState(setState as CustomSetState, getState, api)
state = createState(setState, getState, api)
return api
}

0 comments on commit 4aa50f1

Please sign in to comment.