diff --git a/src/once/index.ts b/src/once/index.ts index 4d82bf30..4a70863d 100644 --- a/src/once/index.ts +++ b/src/once/index.ts @@ -39,5 +39,5 @@ export function once( $canTrigger.reset(reset); } - return sample({ clock: trigger }); + return trigger } diff --git a/test-typings/once.ts b/test-typings/once.ts index 7438fdb3..19116bd1 100644 --- a/test-typings/once.ts +++ b/test-typings/once.ts @@ -4,8 +4,6 @@ import { createStore, createEvent, createEffect, - createDomain, - fork, } from 'effector'; import { once } from '../dist/once';